Battletech

Add topics here with methods, analysis, code snippets, mods etc. for a certain game that normally won't make it in the Tables or Requests sections.
housellama
Noobzor
Noobzor
Posts: 12
Joined: Mon Jun 12, 2017 10:15 pm
Reputation: 2

Battletech

Post by housellama » Sun Apr 29, 2018 6:28 pm

[QUOTE="MadMac, post: 43933, member: 16722"]If I understand the way its done you would need to decompile Assembly-CSharp.dll find the Setgodmode and edit the line



weapon.StatCollection.ModifyStat("debug", -1, "DamagePerShot", StatCollection.StatOperation.Float_Multiply, 10f, -1, true);



Now I might not be 100% on this[/QUOTE]



Confirmed. Modified this line to



weapon.StatCollection.ModifyStat("debug", -1, "DamagePerShot", StatCollection.StatOperation.Float_Multiply, 1f, -1, true);



and tested. Weapons do normal damage, nothing else has changed. Tried setting it to false, but it still did upgraded damage. Required changing the actual multiplier to 1. What this means is that the amount of damage can be modified to fit a person's desired level.



Uploaded the modded DLL that does just normal damage here:



[URL]https://mega.nz/#!zqBFGZzT!vek6bMATNsa9IvSLBCzHdJJPDIKA7HNWW1ilpDVFyBw[/URL]

User avatar
StonerMk2
Novice Cheater
Novice Cheater
Posts: 16
Joined: Thu Nov 30, 2017 12:49 am
Reputation: 0

Battletech

Post by StonerMk2 » Sun Apr 29, 2018 7:04 pm

[QUOTE="cowbot, post: 43920, member: 16678"]Setting their "rarity" to 0 and "purchasable" true doesn't work for me.[/QUOTE]



That didnt work for me at first either. You gotta go into the "shops" folder and open up the file shopDef_Componets_intro and add it in there;



[MEDIA=imgur]mqyhXVD[/MEDIA]

Xovard
What is cheating?
What is cheating?
Posts: 1
Joined: Sun Apr 29, 2018 6:18 pm
Reputation: 0

Battletech

Post by Xovard » Sun Apr 29, 2018 7:15 pm

[QUOTE="hentai-sama, post: 43959, member: 453"]change "ContractFloorSalvageBonus" to 28,



Anyone know hot to change salvaging rate from 1/4 to mutch lesser. i set salvaging in all missions to 360, but when i pick it min is 90 and there are only 7 slots.[/QUOTE]



set

"ContractFloorSalvageBonus" : 200,

"PrioritySalvageModifier" : 0.0025,

Madcapper
Noobzor
Noobzor
Posts: 12
Joined: Sat Mar 03, 2018 11:23 am
Reputation: 1

Battletech

Post by Madcapper » Sun Apr 29, 2018 8:24 pm

[QUOTE="hentai-sama, post: 43959, member: 453"]change "ContractFloorSalvageBonus" to 28,



Anyone know hot to change salvaging rate from 1/4 to mutch lesser. i set salvaging in all missions to 360, but when i pick it min is 90 and there are only 7 slots.[/QUOTE]



It does not work i still have 7 slots for potential salvage and i can't post a picture because i don't have the allowed extension :(

hawkins
Novice Cheater
Novice Cheater
Posts: 20
Joined: Thu Nov 23, 2017 4:04 pm
Reputation: 0

Battletech

Post by hawkins » Sun Apr 29, 2018 8:32 pm

[QUOTE="housellama, post: 43980, member: 6492"]Confirmed. Modified this line to



weapon.StatCollection.ModifyStat("debug", -1, "DamagePerShot", StatCollection.StatOperation.Float_Multiply, 1f, -1, true);



and tested. Weapons do normal damage, nothing else has changed. Tried setting it to false, but it still did upgraded damage. Required changing the actual multiplier to 1. What this means is that the amount of damage can be modified to fit a person's desired level.



Uploaded the modded DLL that does just normal damage here:



[URL]https://mega.nz/#!zqBFGZzT!vek6bMATNsa9IvSLBCzHdJJPDIKA7HNWW1ilpDVFyBw[/URL][/QUOTE]



This .dll makes my game crash at startup

Kay
Novice Cheater
Novice Cheater
Posts: 16
Joined: Fri Mar 31, 2017 10:52 pm
Reputation: 0

Battletech

Post by Kay » Sun Apr 29, 2018 8:47 pm

[QUOTE="hawkins, post: 43989, member: 10724"]This .dll makes my game crash at startup[/QUOTE]



works for me for some reasons. GoG version



on another note, I would also like to ask for some way to make events happen a lil more often
Last edited by Kay on Thu Jan 01, 1970 12:00 am, edited 1 time in total.

User avatar
hentai-sama
Expert Cheater
Expert Cheater
Posts: 92
Joined: Fri Mar 03, 2017 6:55 pm
Reputation: 1

Battletech

Post by hentai-sama » Sun Apr 29, 2018 8:50 pm

[QUOTE="Xovard, post: 43982, member: 16746"]set

"ContractFloorSalvageBonus" : 200,

"PrioritySalvageModifier" : 0.0025,[/QUOTE]



"PrioritySalvageModifier" " : 0.0025, thx that work
Last edited by hentai-sama on Thu Jan 01, 1970 12:00 am, edited 1 time in total.

hawkins
Novice Cheater
Novice Cheater
Posts: 20
Joined: Thu Nov 23, 2017 4:04 pm
Reputation: 0

Battletech

Post by hawkins » Sun Apr 29, 2018 9:02 pm

[QUOTE="Kay, post: 43992, member: 1867"]works for me for some reasons. GoG version



on another note, I would also like to ask for some way to make events happen a lil more often[/QUOTE]

Tried a few times now, as soon as i replace the .dll the game crashes on startup, GoG version as well.
Last edited by hawkins on Thu Jan 01, 1970 12:00 am, edited 1 time in total.

devtek
Noobzor
Noobzor
Posts: 10
Joined: Tue Jan 23, 2018 8:19 pm
Reputation: 0

Battletech

Post by devtek » Sun Apr 29, 2018 10:07 pm

[QUOTE="Kay, post: 43987, member: 1867"]anyone found a way to change reputation gain per mission?[/QUOTE]



In simgameconstants I think these change the mission rep. I haven't gotten very far in the actual game so I'm assuming that higher difficulty missions give more rep but not sure the exact numbers. Can't test right this min.



"ContractNegotiatedReputationPerDifficulty" : 2,

"ContractNegotiatedReputationDifficultyMod" : 5,

"ContractNegotiatedReputationVariance" : 0.0,

"MaxReputationChangeOnAContract" : 20.0,

Ashar
Expert Cheater
Expert Cheater
Posts: 102
Joined: Mon May 01, 2017 7:04 pm
Reputation: 3

Battletech

Post by Ashar » Sun Apr 29, 2018 10:15 pm

aww, i got exicted then, but yeah, that dll crashes my game too. Is it possible the dll is customized in some way, so it wont work for everyone?



Trying to edit the file myself, installed the app and plugin, and ive useed the plugin to change the value from 10 to 1, but it fails to save, giving following error:



[IMG]https://i.gyazo.com/db221f8185167410429c81d71a437ec4.png[/IMG]



Would really love to get this working, id really prefer it if my tiny small lasers didnt do 2.5mil dmg
Last edited by Ashar on Sun Apr 29, 2018 11:11 pm, edited 3 times in total.

Anexgohan
Noobzor
Noobzor
Posts: 6
Joined: Sat Apr 28, 2018 1:20 am
Reputation: 0

Battletech

Post by Anexgohan » Sun Apr 29, 2018 11:15 pm

[QUOTE="Ashar, post: 44001, member: 3790"]aww, i got exicted then, but yeah, that dll crashes my game too. Is it possible the dll is customized in some way, so it wont work for everyone?



Trying to edit the file myself, installed the app and plugin, and ive useed the plugin to change the value from 10 to 1, but it fails to save, giving following error:



[IMG]https://i.gyazo.com/db221f8185167410429c81d71a437ec4.png[/IMG]



Would really love to get this working, id really prefer it if my tiny small lasers didnt do 2.5mil dmg[/QUOTE]

I used dlspy to do that worked like charm

Ashar
Expert Cheater
Expert Cheater
Posts: 102
Joined: Mon May 01, 2017 7:04 pm
Reputation: 3

Battletech

Post by Ashar » Sun Apr 29, 2018 11:29 pm

ou mean Ilspy? i tried that too, same error, hell if i just open the dll, and dont make any changes at all, and try to save it, i get that error, im not sure what im doing wrong

User avatar
vegimata
Cheater
Cheater
Posts: 36
Joined: Tue Mar 07, 2017 5:42 pm
Reputation: 1

Battletech

Post by vegimata » Sun Apr 29, 2018 11:31 pm

[QUOTE="hawkins, post: 43989, member: 10724"]This .dll makes my game crash at startup[/QUOTE]

Same here. Using the GOG version as well

Ashar
Expert Cheater
Expert Cheater
Posts: 102
Joined: Mon May 01, 2017 7:04 pm
Reputation: 3

Battletech

Post by Ashar » Sun Apr 29, 2018 11:34 pm

apprently its a common issue saving with reflexil, says i gotta dump the .dlls or extract the dependencies, whatever that means

Anexgohan
Noobzor
Noobzor
Posts: 6
Joined: Sat Apr 28, 2018 1:20 am
Reputation: 0

Battletech

Post by Anexgohan » Sun Apr 29, 2018 11:43 pm

not ilspy i used dlspy

Post Reply

Who is online

Users browsing this forum: No registered users