Realguns Hardcore editing question

Discuss all aspects related to modding Zandronum here.
Post Reply
EnemyOfMan
 
Posts: 32
Joined: Mon Jul 30, 2012 10:13 pm

Realguns Hardcore editing question

#1

Post by EnemyOfMan » Sun Aug 11, 2013 8:20 pm

Since CommanderZ has dropped off the face of the earth and no longer works on RGH I decided I would have a go at it at least to rebalance some things and make certain less desirable guns more useful. I don't know how to code acs so I won't be changing anything in that but I can mess with decorate so I will change things there. My specific question is for the m1014. It normally has a 4 round magazine, which i feel is far too small, so I gave it an 8 round magazine and a 12 round magazine with extended mags. Problem is, even though I changed the mag size, it won't let you manually reload the gun unless the magazine drops below the original amount of 4 or 6 respectively. I looked and looked and looked in the decorate file for that weapon and I can find nothing that would cause it to do this. I even went out of my way and decompiled the ACS file for RGH and can't find anything in there either. As much as I would like to be able to completely redo this mod I can't so I want to do what I can. If you need any info from me to help solve this problem just let me know and I'll get it to you as soon as I can.

P.S.: could someone tell me how to use spoiler tags? If I post a decorate file I don't want it stretching the message out forever.

User avatar
-Jes-
Frequent Poster Miles card holder
Posts: 975
Joined: Fri Aug 03, 2012 9:55 am
Location: Void Zone

RE: Realguns Hardcore editing question

#2

Post by -Jes- » Sun Aug 11, 2013 8:26 pm

Like I told Deathman27, this requires editing the ACS script's reload function. The following line, to be exact:

Code: Select all

|| ((CheckWeapon("M1014") == 1 || CheckWeapon("M1014 Grip") == 1) && CheckInventory("M1014Clip") < 4 && CheckInventory("M1014Ammo") != 0) || (CheckWeapon("M1014 Ex Mags") == 1 && CheckInventory("M1014Clip2") < 6 && CheckInventory("M1014Ammo") != 0)
The much cleaner source is available on RGH's website.

Also, 8 round M1014? With it's already fast fire rate and reloading, say goodbye to having any use for SPAS-12 and Striker ever.
Last edited by -Jes- on Sun Aug 11, 2013 8:36 pm, edited 1 time in total.

EnemyOfMan
 
Posts: 32
Joined: Mon Jul 30, 2012 10:13 pm

RE: Realguns Hardcore editing question

#3

Post by EnemyOfMan » Mon Aug 12, 2013 5:04 am

I appreciate the reply, it figures it was in acs. I decompiled the acs from the file I had (yes, I know it's not the source) but i tried ACC and it found some stupid non-existent error in the file when I tried to compile it again. I know precious little of what I'm doing as if you couldn't tell so I don't know what's wrong that it won't compile. Also, as ridiculous as it sounds, I'm not terribly concerned with weapon balance because in my experience, the weapons that I want to alter don't get used. What's the difference if now they get used instead of the favorites (aa12, striker)? As it stood, I hardly ever saw anyone use the m1014 or the model 1887 because they just couldn't keep up with the fast firing, high mag capacity shotguns.

As for compiling, you obviously know what you're doing so if you don't mind please tell me how you did this with RGA 2 refined. I'm not a noob to the command line but for whatever reason acc derps when I try to compile the current file I have for RGH acs. I'll check the RGH site for the source, maybe that has something to do with it.
Last edited by EnemyOfMan on Mon Aug 12, 2013 5:08 am, edited 1 time in total.

EnemyOfMan
 
Posts: 32
Joined: Mon Jul 30, 2012 10:13 pm

RE: Realguns Hardcore editing question

#4

Post by EnemyOfMan » Wed Aug 21, 2013 7:25 am

Weird development. I was thinking about acs and how acc errors constantly when I try to compile the RGH acs and I remembered other mods that used acs files in plain text so I had an idea. I took the decompiled acs which was a .txt file, renamed it RGH_ACS with no specified extension and loaded it into a copy of the pk3 file I'm working with. I run the file, RGH loads up fine, I get into game, try to reload the m1014 with the new magazine sizes and it still doesnt work even though I changed the exact line you told me to. How can this be happening? I tried renaming it to RGH_ACS2 and changed the loadacs file to RGH_ACS2 and it made no difference.

Forget this. I made a shortcut to load the new pk3 file and none of the scrips work with the acs in plain text. I was using IDE to load the files in a single play and for some reason it must have been loading the other files. God, I am so confused.
**** ERROR ****
Line 3441 in file "RGH_ACS.acs" ...
RGH_ACS.acs:3441: goto_block : Identifier has not been declared.
> goto_block =
> ^

This is the EXACT error that ACC gives me when I try to compile RGH_ACS.acs
I have no idea why it does this because when I open the file in notepad and go to lin 3441 there isn't even any goto_block there. The nearest line with goto_block = is 3451 and it says this goto_block = 0; restart;. Figure that out.
Last edited by EnemyOfMan on Wed Aug 21, 2013 8:23 am, edited 1 time in total.

User avatar
-Jes-
Frequent Poster Miles card holder
Posts: 975
Joined: Fri Aug 03, 2012 9:55 am
Location: Void Zone

RE: Realguns Hardcore editing question

#5

Post by -Jes- » Wed Aug 21, 2013 8:59 am

As could be expected, an ACS decompiler does not a proper ACS source make.

In this case, script 635 tries to change an integer (goto_block), which appears to be the default name for switch/case integers.
What the decompiler appears to be doing wrong, is that the integer is neither defined nor used in the rest of that script. Try deleting that segment, but keep the terminate; part intact.
Last edited by -Jes- on Wed Aug 21, 2013 9:00 am, edited 1 time in total.

EnemyOfMan
 
Posts: 32
Joined: Mon Jul 30, 2012 10:13 pm

RE: Realguns Hardcore editing question

#6

Post by EnemyOfMan » Wed Aug 21, 2013 5:43 pm

Ok, well, I did that and it compiled but after I load the game and select my stuff from the menu it says "ACS: I dont know what alwaysapplydmflags is"
I would use the source files from the link supplied on the RGH website but I dont know what to do with them.
Last edited by EnemyOfMan on Wed Aug 21, 2013 6:07 pm, edited 1 time in total.

Post Reply