Important Message

You are browsing the archived Lancers Reactor forums. You cannot register or login.
The content may be outdated and links may not be functional.


To get the latest in Freelancer news, mods, modding and downloads, go to
The-Starport

concerning weapon classes, need info plz

The general place to discuss MOD''ing Freelancer!

Post Wed Aug 11, 2004 9:42 am

concerning weapon classes, need info plz

hi, i need help

i have changed (in resources.dll) the names of gun classes, and it worked fine with the hardpoints of ships .. showing the new names
but accordingly i need to change the gun class which is displayed for each gun .. i thought it would be found in the weapons ids name or info, but nothing there .. what i found tho, is (i guess) just the empty bracket which says (class: _) which let`s me think it will just put in the numbers dynamically ..
but could not find the references ..

plz, info is highly apprechiated

thx !!

Post Wed Aug 11, 2004 9:54 am

You need to be searching the dlls once more, but this time look for strange occurances. You best back up your resources.dll first, as you may need to do some changing.

Especially keep an eye out for % % entries - like %H% and so on. I haven't bothered looking into its reference points too much, but i think the ids cards are coded to run together......etc. At that point, you will need to either remove the entry in that ids slot or somethign - although it may then give an "IDS?" part....experiment - and dig. I would look, but its been several months since i last looked, and i don't fancy wasting a few hours for no reason to me!

Post Wed Aug 11, 2004 11:03 am

damn i`ve just been looking %entries and i don`t think it`s in resources.dll ..

i think it`s common.dll, just found something (open with hex editor and search for "class" that looks to me like structure of how the parts are sticked together (name+class, ..)

i can`t do that myself, last time i tried to make the order show up on rep list by editing common.dll, it just crashed all time .. and that has only been deleting the entry with 00000..


anyone who`s good with hex editor could tell me the way please?

anyone tried changing the class names before?

Post Wed Aug 11, 2004 11:53 am

@RimShot

mmh. what exactly do you mean ?
If selecting a weapon at the weapon-dealer ... do you mean the general description weapon-/rocket class ? This is in resource.dll string no. 917 and will change only the description tab for each weapon and rocket.
Or dou you mean the number which is displayed ? This is the defined number in weapon_equip.ini and is hardcoded to show this number. Maybe you can give a more detailed explaination and I've a look at it.
But changing anything direct via hex-editor is very risky. Be a lucky guy ... it is indeed only a text string for output ... but it also could be a key value used internaly. Than you have no chance. Changing a programm or library in assembler is not really fun.

eisfuerst

Post Wed Aug 11, 2004 12:55 pm

hmm .. well thx mate, i have on the cap ship hardpoints that show in the game as "Gun/Missile BS" .. it works by chaning resources.dll

but for guns:

for example i want to make class 10 called class BS instead .. so the liberty large forward gun would show as (Class: BS) something .. given it hp_gun_special_10

and i have no idea where to look or what to do .. cause it won`t show up in dll as text say "gun01 (class 10)" only "gun01" .. it`s added automatically according to the hardpoint i guess -but that`s what i changed in resources (i thought) but it`s only for the hardpoint name on ship .. not with the weapon .. so the class number for a weapon is somehow hardcoded, yes i think so ..

Post Thu Aug 12, 2004 10:26 am

Ok. Now I got you RimShot. The class is hardcoded. It is directly attached to the used Hard Point but not only the hp name. So if your gun has the following entry in weapon_equip.ini

hp_gun_type = hp_gun_special_10

the numeric value 10 is displayed. For test i entered there just hp_gun_special_19 and the complete row is missing at the shipdealer. But you could change the entry to hp_gun_special_aa and edit also the common.dll (only the string value) ... than your gun is showed up again but still with class = 10.
So it is not only taking the last numbers of the hp name.

Think it's not possible to change the class number without really editing the program.

Greetz
eisfuerst

Post Thu Aug 12, 2004 11:19 am

The text saying "Gun/Missile Class:"

Is in dll string 58, numbers 917 (turret is 918)

Gun-Class 1-10 is in dll numbers:
946-955

Missile-Class is right after:
956-965

1525-1534 say
"Gun/MIssile-Class 1-10"
but not with the dash etc - just 1 is 1525, and 1534 is 10!

1731-1740 is the same but for turrets



As you can tell, like i said, do some searching, and work - and then you will get results. Dunno why it was someone else who had to do this for you, but since i wasted my time looking for you - hope it works!

Post Thu Aug 12, 2004 2:35 pm

oh .. come on .. ain`t hard to find ..

i know all those resources you listed and changed them, but they only work with ship mounts not with the name/info according to the GUN

quote: Is in dll string 58, numbers 917 (turret is 918)

that`s what is important but i must get to know where is the relation .. because when i remove the "class:" there will still remain the numbers only .. 1-10


i know i tried changing all the 946-965, 1525-1534, 1731-1740, they only refer to the -weapon slots- on ships, not to the guns themselves ..

Post Thu Aug 12, 2004 11:02 pm

Okay, like i said, start changing other dynamic things - like /n or %n% etc etc - remove those and see what happens. I don't know the numbers, cause i am off to work

I did include the numbers 0-9 didn't i? Cause you could try those - remove them and see. THose were somewhere around the numbers i listed - have a look and try. You will notice you get % system % system - or something like that. It calls for the ids name from the universe ini file for the system as you enter it (Says in green writing across top of screen). That is what i am talking about

Post Fri Aug 13, 2004 4:09 am

@Chips

As far as I know and figured out, the only reference to the class of a weapon is hp_gun_type in weapon_equip.ini. There is know numeric value for a weapon that tells freelancer I'm a class 10 weapon. That's why I think (read my post above) the numeric value for a gun class is hardcoded and linked to the hp_gun_type value like hp_gun_special_2 (class: 2) and you'll find no placeholder like %d in any resource string or html.

[Gun
nickname = fc_j_gun01_mark01
ids_name = 263175
ids_info = 264175
...
hp_gun_type = hp_gun_special_2
...

If you change the hp_gun_type it shows with the new referring class. No explicit ids_name or info nor a numeric value in the weapon definition for the class.

Greetz
eisfuerst

Post Fri Aug 13, 2004 8:29 am

Aye, that be true, but all text in the game is concealed in the main dll files - at which point the numbers it calls for are in there.

however, those numbers may be for prices and more - hence the issue.

Also - since the "Gun/Missile class:" is in there, it means something somewhere adds the value of the mount there - so it is linked somehow. Its just finding out how.

Post Fri Aug 13, 2004 11:21 am

hp_gun_...

is exactly the numbers we know because they are defined on the ship and on the ship they appear the way they should .. they changed to new names .. (on the ship)

and yes now i know you understand me, there`s somewhere a second relation to hp_gun_... this time only being the numbers .. and they will be used for the name of the gun itself .. added to the ("gun class:" string ..

i`ll be away over weekend, i wish y'all a good time !!

bye

Return to Freelancer General Editing Forum