-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
You're developing a standalone mod for Cs2D and want to implement your own weapons, but the standard names of your chosen template sucks?
Here's the solution. Just change the weapons name. But how?
It's simple. The name of the weapon is stored in the main executable(win). You just have to search for it and change it.
Using this technique you can do awesome stuff like that:
What do I need?
At first you need a hex-editor. I'm using XVI32.
You can download it HERE.
Then you need the following list, which contains the location of all strings used by the executable.
CLICK HERE
(I generated it using a self written tool)
Getting started
First open Cs2D.exe in your Hex-Editor.
After that search for you chosen weapon in the given string list. In this example I'll use "Galil".
The line in the textfile where I found it tells me this:
1
1002[@2448276]=Galil
Now switch back to your Hex-Editor. Open the Goto window.
(Or just Ctrl+G)
Type the location of the string into the textbox and be sure that "decimal" & "absolute" are marked. Then hit ok.
You should end up with the first letter of the weapons name selected.
Now you have to face one problem. You can only rename it limited.
G A L I L --> 5 letters
That means your new name for it can only contain <=5 letters.
In this example I'll name it "SHOCK". The word is exactly 5 letters long.
Now you just have to save your work.
(File->Save as)
I advice you to not overwrite the original file.
To make the gfx for your "new weapon" work, you also have to rename its gfx file.
I ended up with this:
I would be very thankfully if someone could send me a corrected version of this.(English)
And please help me finding a better title. This one is looks odd.
Here's just a small video demonstrating some experiments.
http://www.youtube.com/watch?v=ZueWwqruVh0