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

Adding new resources DLL *IS* possible

The general place to discuss MOD''ing Freelancer!

Post Thu Mar 20, 2003 1:35 pm

Yer ive been using your program and a great help it is too! Anyone wanting to work out ref IDs i would say use this program. However if u wanna refrence binarys (ie xml files) you have to work kinda backwards since the binarys arnt in tables so you carnt fill in the table feild. Is there anyway you could include a method for refrencing them from Res ID and DLL #

Post Thu Mar 20, 2003 1:50 pm

basiclay its like this. Im using the code that produced the data card shown in my picture.
<pre><font size=1 face=Courier><font size=1 face=Courier><font size=1 face=Courier>
<?xml version="1.0" encoding="UTF-16"?><RDL><PUSH/><TRA data="1" mask="1" def="-2"/>
<JUST loc="center"/><TEXT>FL1A "Swarm Flaker" Torpedo Launcher</TEXT>
<PARA/><TEXT> </TEXT><PARA/><TRA data="0" mask="1" def="-1"/><JUST loc="left"/>
<TEXT>Developed for use in combat situations requiring the break up of lightly armored fighters
the flaker has become one of the fringe worlds more popular weapons. </TEXT>
<PARA/><TEXT> </TEXT><PARA/><TEXT>*Requires Flaker
Torpedo</TEXT><PARA/><TEXT> </TEXT><PARA/><POP/></RDL>
</font> </font> </font></pre>

Change the code however you want and save as html file. Then using reshacker add the .html file as a resource (type 23).

I think you could probably add other types of basic html encoding and it would proably work (i havent tryed) also there are bits where i think you could add text:
<pre><font size=1 face=Courier>
<TEXT> </TEXT>
</font></pre>

but ive no idea how it would end up formated



Edited by - Turkeh on 20-03-2003 13:53:36

Post Thu Mar 20, 2003 2:46 pm

oh, thats great! I havn' t see that reshack can import html files.. THX

for my prog: it can already convert ids_info (xml entries) and you don' t need to put in a "table number" maybe you have an old version. the actual version is 0.5. just select in top if the form the "ids_info" option and it converts with the right formula...

Post Thu Mar 20, 2003 6:39 pm

so complicated using visual studio...

i have Visual studio, it has a BUILT in resource editor.

so I just straight up edited the file.

an example of my work is.... http://freelancer.solutionvii.com/?down ... 180921.dll

you'd have to take out the tame stamp... it's the infocards.dll file.

it's a small edit, I only added the max shield class to the infocard stats description... so if you scan a barracuda, it'll list the max shield along with the other info.

Post Thu Mar 20, 2003 7:01 pm


Change the code however you want and save as html file. Then using reshacker add the .html file as a resource (type 23).


Don't forget to save the file in Unicode.

Post Thu Mar 20, 2003 9:31 pm

Volvin, sorry am a newbie to this could you explain that process for me please. (Am using res hacker to view dll's btw)

Am trying to add some new classes of ship into the game, this looks like the best way to be doing it, of course problem there is the ids_name thing which i have stumbled onto X-Lancer how did you get to that number? (can ya link me to the post or explain in a little more details)

Cheers guys
-Zen

Post Sat Mar 22, 2003 12:35 am

Ok have managed to hack in a new version of a ship, but i cannot get the game to read new infocards even when i set them as a seperate dll as well.

ANyone else having these problems?

Post Sat Mar 22, 2003 12:56 am

You get "Unknown object" right?
I haven't had the time to fully work this out but I know that string tables and XML resources (infocards) can co-exist in one dll. Look at equipresources.dll for example.

Post Sat Mar 22, 2003 1:31 am

Would anyone be prepared to write up a tutorial on how to add new ships/ship instances? Cus i want to make a new texture for a ship but not overwrite the existing ship texture. I want this ship to be available at only one place. I might even try and add custom ship textures for each faction so each faction has it's own paint job.

Post Sat Mar 22, 2003 2:43 am

X-Lancer :

Thats the exact problem i get if i try to add infocards to a new dll with same calculations as for the ship. However if i try and tack on a new resource to the end of the infocards.dll the game reads the orignal data from the orignal resource. Glad i aint the only one lol

Have_Blue :

Am in the stages of writing one myself, depends if X-Lancer is doing one as well coz i will hold on mine hes got a better understanding of this i think.

I have gotten quite far, adding edited stuff into the game seems really easy now compared to it this time yesturday lets hope tomorrow beings an eiphany i am looking for lmfao

Zen,
Even the greatest of whales is helpless in middle of desert.
DuwX.com

Post Sat Mar 22, 2003 4:12 am

excellent!
and i know what you mean about it getting easier to edit. i've been playing around with the ini files. it's really not that hard. still, a good tut on adding stuff would be very welcome and will most likely result in a whole heap of new mods, some might even be half decent.

Post Sat Mar 22, 2003 4:48 am


Am in the stages of writing one myself, depends if X-Lancer is doing one as well coz i will hold on mine hes got a better understanding of this i think.


I was planning to .. LOL (cuz I got several e-mails asking for specific details)
BUT.. unfortunatly (as I mentioned) I haven't got much free time these days so if you want to make one ... then by all means.

Post Sat Mar 22, 2003 5:40 am

My names and infocards are working (yay!)

http://hosted.nihilogic.dk/freelancer/screen8.jpg

I made a new nameresources.dll and infocards.dll and loaded them as #7 and #8.
I wasn't sure how to get the .ini ID for the infocards, but using skyshooters excellent little tool ( http://mypage.bluewin.ch/skyshooter/fil ... lidref.zip ), selecting "ids_name" and using "1" for the table field seems to get the right infocard IDs.

These IDs work for the dll's below if any of you are still having problems.

[Ship
ids_name=462753
ship_class=1
ids_info=524289 ; Stats (texts + values)
ids_info1=524290 ; Description
ids_info2=524291 ; Stats (only texts)
ids_info3=524292 ; Stats (only values)
nickname=ship_frigate

http://hosted.nihilogic.dk/freelancer/n ... es_new.dll
http://hosted.nihilogic.dk/freelancer/infocards_new.dll

Edit: Oh, I got the Unknown Object thing as well..until I realised I'd gotten the IDs wrong. Pfft..


Edited by - dixi on 22-03-2003 05:41:27

Post Sat Mar 22, 2003 2:29 pm

Yeah i been using flidref to do the calculations i'll check out your dll's see if i can work out where i have been going wrong, thanks dude

This just could be the break i have been looking for woo hoo lmfao

if i am reading your info correctly

ids_name = dll 7, table 251, position 2
ids_info = dll 8, resid 2 (and sequentially 3,4,5)

time to check lol

Zen,
Even the greatest of whales is helpless in middle of desert.
DuwX.com

Post Sat Mar 22, 2003 2:46 pm

Yes, them ID names have a pattern. I added NEW stuff also, especially info cards for my coming Prisoner MOD (Faction pilots can be captured as loot to ransom). I created a seperate Escape Pod for each faction with name and descriptions.

I have a quest for your more experts modders, can I use a new Resource DLL to get the EXE to "read in" say a new goods.ini file to change commodity prices?

The EXE is constantly looking at these dll and you can not write over them while EXE is running. But I can make a 'script' sort like the Random Mission routines to sqeeze in a simulated (limited for now) Dynamic Economy for trade prices.

Hey, why not just decompile the darn EXE and change that hard code the easy way? LOL We make a 'patch' for it. Is that legal?

Return to Freelancer General Editing Forum