BattletechModders / ModTek

Mod system for HBS's PC game BattleTech.
GNU Lesser General Public License v2.1
121 stars 34 forks source link

JSON Behaviour (optional even) #67

Closed SamwiseLook closed 6 years ago

SamwiseLook commented 6 years ago

I am not sure how ModTek currently deals with this but I believe it is merging JSON files in some way, this seems to mean that if the destination JSON is not correctly formatted it doesn't work so well. Is it possible to have a straight replacement as an option? Or if this is already possible how does one implement it? I am playing with the AI files and they are frankly the preverbial dogs breakfast! I can work simply by overwriting the files, but would love to be able to do this ModTekable!

mpstark commented 6 years ago

You can replace the file by specifying it in the manifest as a "new" file that has the same ID. This new file must live outside of the StreamingAssets path.

On another note, I've also started playing with the AI behavior variables with amechwarrior. I've got a repository over at https://github.com/Mpstark/AI-Tweaks. Things are going pretty slow because of amechwarriors lack of free time, though.

SamwiseLook commented 6 years ago

Cool I will take a look, I have got the AI working better even with simple changes around reserving and allowing overheat, but also changes to fencing behaviour while sprinting etc... so they don't all turn up in a long line. I'll check back when I have things working okay and compare what I have with what you guys come up with, just a shame there is no way for an AI on AI fight :-))

Sam Look.

On 12 June 2018 at 11:18, Michael Starkweather notifications@github.com wrote:

You can replace the file by specifying it in the manifest as a "new" file that has the same ID. This new file must live outside of the StreamingAssets path.

On another note, I've also started playing with the AI behavior variables with amechwarrior. I've got a repository over at https://github.com/Mpstark/AI-Tweaks. Things are going pretty slow because of amechwarriors lack of free time, though.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Mpstark/ModTek/issues/67#issuecomment-396416543, or mute the thread https://github.com/notifications/unsubscribe-auth/ALqVyOu9tzJSiaXdoDznlmJ7llXeF-G2ks5t7vrQgaJpZM4Uh-9H .

-- Sam Look

mpstark commented 6 years ago

amechwarrior yesterday in his Paradox thread:

Big thanks to GUD and FlukeyFiddler on discord for figuring out how to get AI vs. AI in skirmish mode.

BATTLETECH\BattleTech_Data\StreamingAssets\data\debug\settings.json

add lines:

"TestToolsEnabled" : true, "PlayerOneIsAIControlled": true,

just above the

"disablePhysicsOnLoad": true, "disableLoggingOnLoad": true,

Save the file.

Your Skirmish mode will now run with both sides controlled by the AI.

SamwiseLook commented 6 years ago

Thanks for the heads up definitely going to have a play!

On 12 June 2018 at 12:47, Michael Starkweather notifications@github.com wrote:

amechwarrior yesterday in his Paradox thread https://forum.paradoxplaza.com/forum/index.php?threads/ai-tweaking-v2-still-building-a-better-mouse-trap.1075322/page-4 :

Big thanks to GUD and FlukeyFiddler on discord for figuring out how to get AI vs. AI in skirmish mode.

BATTLETECH\BattleTech_Data\StreamingAssets\data\debug\settings.json

add lines:

"TestToolsEnabled" : true, "PlayerOneIsAIControlled": true,

just above the

"disablePhysicsOnLoad": true, "disableLoggingOnLoad": true,

Save the file.

Your Skirmish mode will now run with both sides controlled by the AI.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Mpstark/ModTek/issues/67#issuecomment-396430646, or mute the thread https://github.com/notifications/unsubscribe-auth/ALqVyJeyFs3Hfl7cNZNzUWDJT2TF6xobks5t7w-pgaJpZM4Uh-9H .

-- Sam Look