Author Topic: Is it possible to change rifles damage?  (Read 1645 times)

Offline Zar Nivop

  • Sergeant
  • **
  • Posts: 38
    • View Profile
Is it possible to change rifles damage?
« on: March 14, 2024, 11:04:03 pm »
I poked around in the .RUL files and didn't find any mention of rifles.

Offline CrazedHarpooner

  • Colonel
  • ****
  • Posts: 102
    • View Profile
Re: Is it possible to change rifles damage?
« Reply #1 on: March 15, 2024, 12:07:50 am »
You'll find that inside the items.rul file, in the case of the starting xcom rifle you just need to look for STR_RIFLE, but if you're looking to change the damage you'll have to check its ammo under STR_RIFLE_CLIP.

Offline Zar Nivop

  • Sergeant
  • **
  • Posts: 38
    • View Profile
Re: Is it possible to change rifles damage?
« Reply #2 on: March 16, 2024, 05:59:18 am »
You'll find that inside the items.rul file, in the case of the starting xcom rifle you just need to look for STR_RIFLE, but if you're looking to change the damage you'll have to check its ammo under STR_RIFLE_CLIP.

Thanks!  ;D

Offline Zar Nivop

  • Sergeant
  • **
  • Posts: 38
    • View Profile
Re: Is it possible to change rifles damage?
« Reply #3 on: March 17, 2024, 09:39:54 am »
Thanks!  ;D

My joy was premature. The changes in the .RUL file do not reflect in the game - I went as far as giving the humble laser rifle 200 damage, but it seems it stays on 60. Any tips?

Offline HinterDemGlas

  • Captain
  • ***
  • Posts: 56
    • View Profile
Re: Is it possible to change rifles damage?
« Reply #4 on: March 17, 2024, 10:42:23 am »
Did you edit while the game was running? (Don't.) Are you using any mods? Did you actually save the .rul document? Did you run the OXC(E) exe from the folder you edited, not a different one? Did you use a good editor like Notepad++ that won't do weird stuff to the document?

EDIT: try out this mod I attached and let us know what happens (I recommend putting all your small changes into a small modular mod like this so you have them in one place and can adjust or undo them easily; it requires no more learning than editing the rulesets directly)
« Last Edit: March 17, 2024, 11:10:39 am by HinterDemGlas »

Offline CrazedHarpooner

  • Colonel
  • ****
  • Posts: 102
    • View Profile
Re: Is it possible to change rifles damage?
« Reply #5 on: March 17, 2024, 11:30:37 am »
BTW, do try to make changes via custom mods, editing the 'master' rul files is just a general bad idea. Simple changes might be easy to undo but it's just safer for the install folder and less of a hassle in the long run.

Offline Zar Nivop

  • Sergeant
  • **
  • Posts: 38
    • View Profile
Re: Is it possible to change rifles damage?
« Reply #6 on: March 17, 2024, 03:34:13 pm »
Did you edit while the game was running? - No
Are you using any mods? Somne that come with openxcom.exe
Did you actually save the .rul document? Yes
Did you run the OXC(E) exe from the folder you edited, not a different one?
Not the same folder. The .RUL files are in ...\openxcom\standard\xcom1 while openxcom.exe is in ..\openxcom
Did you use a good editor like Notepad++ that won't do weird stuff to the document? Notepad++ only

EDIT: try out this mod I attached and let us know what happens (I recommend putting all your small changes into a small modular mod like this so you have them in one place and can adjust or undo them easily; it requires no more learning than editing the rulesets directly)

Offline Zar Nivop

  • Sergeant
  • **
  • Posts: 38
    • View Profile
Re: Is it possible to change rifles damage?
« Reply #7 on: March 17, 2024, 04:19:36 pm »

Offline Zar Nivop

  • Sergeant
  • **
  • Posts: 38
    • View Profile
Re: Is it possible to change rifles damage?
« Reply #8 on: March 17, 2024, 04:21:16 pm »
EDIT: try out this mod I attached and let us know what happens (I recommend putting all your small changes into a small modular mod like this so you have them in one place and can adjust or undo them easily; it requires no more learning than editing the rulesets directly)

The mod works. My edits to items.rul, however, did not. Will report after some tests

Offline Zar Nivop

  • Sergeant
  • **
  • Posts: 38
    • View Profile
Re: Is it possible to change rifles damage?
« Reply #9 on: March 17, 2024, 04:25:19 pm »
EDIT: try out this mod I attached and let us know what happens
MARTHA

Offline HinterDemGlas

  • Captain
  • ***
  • Posts: 56
    • View Profile
Re: Is it possible to change rifles damage?
« Reply #10 on: March 17, 2024, 04:39:27 pm »
MARTHA

I recommend just changing the mod to your liking, then; you can add weapons and anything else really from the main ruleset to it as you wish. Make sure you read this carefully and check that or that for every value you don't know.

Oh and if you'd like to de-Sniderfy the mod just change or delete Language/en-US.yml ;)

Offline Zar Nivop

  • Sergeant
  • **
  • Posts: 38
    • View Profile
Re: Is it possible to change rifles damage?
« Reply #11 on: March 18, 2024, 02:56:04 am »
Nope, it is Martha forever, evidence of your fine help here.

https://img-comment-fun.9cache.com/media/a77QA92/aYDAAWgM_700wv_0.mp4