Freelancer Community Network
Reminder: Internet Explorer 6 or below are NOT supported.
HomeHome
ForumForum
WikiWiki
DownloadsDownloads
ForgeForge
Multiplayer Connection Tutorial
Collapse/Expand Random Image
Collapse/Expand Login
Username:

Password:

Remember me



Lost Password?

Register now!
Collapse/Expand Chat
Collapse/Expand Who's Online
114 user(s) are online (70 user(s) are browsing Forum)

Members: 0
Guests: 114

more...
Collapse/Expand Donations
Monthly costs: -30€
Income (ads): +5€
Donations (last month): +0€

Current balance: 55€
(last updated 04/2021)

Please make a donation if you want to help keeping The-Starport online:

Thanks!
Collapse/Expand Links
Collapse/Expand Advertisement
There are currently 57 users playing Freelancer on 46 servers.
June. 9, 2023

Browsing this Thread:   1 Anonymous Users



 Bottom   Previous Topic   Next Topic  Register To Post

« 1 (2)


Re: Is there a way to add new ships to the game (using the same model as existing ships)?
Just popping in
Joined:
2022/3/1 10:27
Group:
Registered Users
Posts: 19
Offline
So I need some sort of program to edit infocards.dll? What should I use? I would like for the ship's actual stats to be displayed ingame.

Also, someone mentioned earlier in the thread something about making Juni's Defender and the CSV playable. Could I get something to copy-and-paste to make that possible, please? I'm mostly concerned about the red Dragon, but once I have this whole process figured out, more ships couldn't hurt. I think those two are the only other ones that aren't player usable, and are the appropriate size for a playable ship (i.e., not a transport or a gunboat or something. Actually, what would happen if you modded something huge to be playable and then tried to land somewhere with a docking port too small for your ship to fit inside? On rare occasions while playing, I've had my ship experience slight problems with pathing and collision detection while attempting to dock. Can't imagine what a gunboat trying to dock with a tiny space station would be like. Part of me would kind of like a playable gunboat, but I can't imagine it would actually work out that well.)

Posted on: 2022/5/29 20:29
Top
Re: Is there a way to add new ships to the game (using the same model as existing ships)?
Just can't stay away
Joined:
2012/5/22 20:21
Group:
Registered Users
Posts: 252
Offline
Here are some scripts for the Blood Dragon Samurai and CSV. I've added a cockpit file for the CSV which i've also included.

To make these for sale, add these lines to the base of your choice in market_ships.ini. Remember you can only have three ships for sale maximum at any one base.

marketgood = junkercsv_package, 1, -1, 1, 1, 0, 1, 1

marketgood = samurai_package, 1, -1, 1, 1, 0, 1, 1

Attach file:


zip Blood Dragon Samurai.zip Size: 2.17 KB; Hits: 62
zip CSV_Junker.zip Size: 1.78 KB; Hits: 63
zip csv.zip Size: 0.32 KB; Hits: 64

Posted on: 2022/5/29 21:43
Top
Re: Is there a way to add new ships to the game (using the same model as existing ships)?
Just popping in
Joined:
2022/3/1 10:27
Group:
Registered Users
Posts: 19
Offline
Where do I place these files? What are they, even? Do I need to do anything else?

Posted on: 2022/5/29 23:53
Top
Re: Is there a way to add new ships to the game (using the same model as existing ships)?

Joined:
2021/1/22 12:23
Group:
Registered Users
Posts: 38
Offline
The Samurai and CSV_Junker are mods. You need to use FLMM to run those. You make a folder in FLMM's mods folder for each and drop the XML file into them. Then, in FLMM, enable that mod.

The csv.ini file is the cockpit file used by the CSV_Junker mod. You can see that line in the XML file for it where the cockpit is defined. But, I'm not sure why the mod for the CSV is pointing to SHIPS\UTILITY\CSV\ as where you need to put the csv.ini. I'd think it better to make a new directory (e.g. DATA\COCKPITS\UTILITY\CSV), put the csv.ini in there and then change that line in the .xml file to point to it.

Why was the non-cockpit folder used, @Dromedary?

As for DLL editing, you can use something like FLDev (this is what I use). Inside InfoCards.dll you can then search for your ship name. The infocard entry after each ship has the stats.

For example, I looked up Hawk which shows as ID 066534. That's the ship info and flavour text. On the next line I can see 066535 showing 4/0 3300 45 26/26 4 6 M, CM, CD which are all the equipment it supports. 066536 is the file with the labels for those, so it has Stats, Gun/Turrets Mounts, etc as text values.

If you're adding them as copies to then have as 'new' ships, you'd need to make three infocard entries per the above - one for the flavour text, one for the stats, and one for the text next to each stat. In the files where you added the red Dragon earlier, note those IDS entries in the ini file. Those need to point to your new infocards.

Posted on: 2022/5/30 5:14
Top
Re: Is there a way to add new ships to the game (using the same model as existing ships)?
Just popping in
Joined:
2022/3/1 10:27
Group:
Registered Users
Posts: 19
Offline
Okay, I'm guessing the CSV doesn't have a cockpit normally and thus can't be made playable without a full-on mod? What's the Samurai? Just a red Dragon with a different name?

Quote:
For example, I looked up Hawk which shows as ID 066534. That's the ship info and flavour text. On the next line I can see 066535 showing 4/0 3300 45 26/26 4 6 M, CM, CD which are all the equipment it supports. 066536 is the file with the labels for those, so it has Stats, Gun/Turrets Mounts, etc as text values.


Hmm, if that's how it works, then could I simply make my red Dragon have identical stats to an existing ship (say, the Stiletto for example), could I then change the red Dragon's ID numbers to be the same as the ship whose stats I copied, in order to have the red Dragon's stats be displayed accurately in-game without having to edit .dll files? Would that work?

Posted on: 2022/6/2 20:55
Top
Re: Is there a way to add new ships to the game (using the same model as existing ships)?

Joined:
2021/1/22 12:23
Group:
Registered Users
Posts: 38
Offline
Technically, yes, you could just reuse those IDS to have the same stats. But that'll mean the ship will also have the same name and description. If that's not a problem though, go for it!

DLL editing is easy using something like FLDev, though.

1 - Load it up.
2 - In the Home tab, select the Freelancer.ini and resources.dll file using their Browse buttons.
3 - Click the DLL Editor tab. Select a DLL file in the DLLs List (in top-left) and click the Active checkbox just beneath it to see what's in the selected DLL file.
4 - Search for whatever you need in the middle search bar and hit Enter or the Search button to perform the search.
5 - Click on the entry you want to change, change it in the text field, then click Update. They're not yet applied, though.
6 - In the lower-middle you can see your changes and untick any you change your mind on before you Apply.
7 - Click Apply Changes when ready. You will get a warning that this is not reversible.

Not that this is for editing of existing datacards, not making new ones. You can download the FLDev starter DLL files, which are blank DLLs for you to write new infocards to.

Posted on: 2022/6/3 7:57
Top
Re: Is there a way to add new ships to the game (using the same model as existing ships)?
Just popping in
Joined:
2022/3/1 10:27
Group:
Registered Users
Posts: 19
Offline
Alright, I think I was able to get it. I went into shiparch, found "ku_dragon" and changed the value next to "ids_info3" to "66520" (which is the "ids_info3" value for "bw_elite"). In-game, this seems to have changed the red Dragon's stats to display the Stiletto's stats, while keeping the standard Dragon's name and flavor text description. Did I do it right?

Another thing I'd like to do is make Juni's Defender playable, if that's possible without mods that require more than just editing plain text files. Is there something I can just copy and paste like I did to make the red Dragon playable?

Posted on: 2022/6/5 3:49
Top
Re: Is there a way to add new ships to the game (using the same model as existing ships)?

Joined:
2021/1/22 12:23
Group:
Registered Users
Posts: 38
Offline
Nice! Yeah, if the stats display there, then you've done it properly. You can test it out against enemies, too. Jump into a normal Dragon and note the damage, then go up against the same enemies in the Red Dragon and see. Since the Stiletto has more shields, the damage should appear as less taken off the shield bar.

Correct! Juni's Defender is actually even easier, because it is already set up in shiparch.ini and uses the normal Defender cockpit.

Look up "nickname = li_elite2" and you'll see her Defender. All you need to do is make a hull and ship package separately for it in goods.ini, then in market_ships.ini, sell that package at the base you want.

For example, add these to your goods.ini:

[Good]
nickname = le2_hull
category = shiphull
ship = li_elite2
price = 10
ids_name = 237033
item_icon = Equipment\models\commodities\nn_icons\li_elite.3db

[Good]
nickname = le2_package
category = ship
hull = le2_hull
addon = ge_le_engine_01, internal, 1
addon = li_elite_power01, internal, 1
addon = ge_s_scanner_01, internal, 1
addon = ge_s_tractor_01, internal, 1
addon = shield01_mark02_hf, HpShield01, 1
addon = LargeWhiteSpecial, HpHeadlight, 1
addon = SlowSmallBlue, HpRunningLight01, 1
addon = SlowSmallBlue, HpRunningLight02, 1
addon = SlowSmallBlue, HpRunningLight03, 1
addon = SlowSmallBlue, HpRunningLight04, 1
addon = contrail01, HpContrail01, 1
addon = contrail01, HpContrail02, 1
addon = DockingLightRedSmall, HpDockLight01, 1
addon = DockingLightRedSmall, HpDockLight02, 1

Then, add this to the base you want to sell it at in market_goods.ini:

marketgood = le2_package, 0, -1, 1, 1, 0, 1, 1

Posted on: 2022/6/5 8:52
Top
Re: Is there a way to add new ships to the game (using the same model as existing ships)?
Just popping in
Joined:
2022/3/1 10:27
Group:
Registered Users
Posts: 19
Offline
Got it! Thanks.

One more thing I'd like to know. Is it possible to make a duplicate of an existing ship and just change the stats? Like, take a weak early-game ship, and make a new ship with stats suitable for mid-late game that has the same model, name, descrpition, etc of that early ship? I want to keep the existing ship as-is, but just make a second, better version of it that's available later in the game.

Posted on: 2022/6/6 7:20
Top
Re: Is there a way to add new ships to the game (using the same model as existing ships)?

Joined:
2021/1/22 12:23
Group:
Registered Users
Posts: 38
Offline
No worries. Yep, same process. Just duplicate the sections of the files you've been editing, and then change the relevant ID for the copied ship to refer to the stats of another.

If you want your own custom stats, you'll need to use FLDev to create a custom entry in an infocard, and if you do that, you might as well make a custom ship name and description, too, since those require custom infocards, too. Then you'd refer to the ID of the new infocard.

Good to see someone else getting into FL modding again! I'm going to make some tutorial videos on what I know. I'm trying to learn how to model custom ships and get them appearing in the game, but currently still having issues with that. Once I learn how to do that successfully, I think I can cover all the basics in videos. Hopefully we'll get even more people having fun with FL modding again.

Posted on: 2022/6/7 3:45
Top
Re: Is there a way to add new ships to the game (using the same model as existing ships)?
Just can't stay away
Joined:
2012/5/22 20:21
Group:
Registered Users
Posts: 252
Offline
Regarding the files i uploaded earlier.

You DO NOT need FLMM to use those files if playing by yourself. Just put the first two into the main game folder and off you go. As to why i put the cockpit file into the CSV folder, I put all the files relevant to the CSV in one place so easier to find than putting them into different folders.

As to those two ships being mods, depends how you look at it. Both those models are unused in FL but sit there in the code. The Samurai for instance has all the breakable parts included, which is why i coded them into the xml file

I also coded the 'Starblazer' the same way, the missing civilian fighter which also has all it's files included with breakable parts in the original game but was never used.

I'd also be careful about just copying ships with all the same IDs numbers etc, as that will cause errors in game. This is why scripting is easier, as when the game loads, it will create a new ids number for the new ship and infocards, making things much better for the game as a whole. I mean you can hard code it all in, but it's more complicated doing it that way.

@basic-meme

I'd start learning which files are needed to do certain things. You're probably new at this and i get that, but i'd do some research on the subject if i were you.

Also in my script files, if you open them with notepad, all the stuff i've added has the file location at the top of each section, so you can see which files are needed to add a new ship.

Posted on: 2022/6/7 21:34
Top
Re: Is there a way to add new ships to the game (using the same model as existing ships)?

Joined:
2021/1/22 12:23
Group:
Registered Users
Posts: 38
Offline
All good points! Yeah, I was just presenting the easiest approach to get them started. I know that when I first started, getting hung up on specifics was a big barrier to entry compared to just getting something I made working, and learning more/refining later.

Thanks for the ship explanations, too. I didn't know there were missing ships in the code! I've only just recently started looking at what was left in and not implemented, like the Pygar landing zone, so first thing I want to do is make it dock-able again. I thought maybe they were just never intended to be player-operated.

Looking forward to more exploration.

Posted on: 2022/6/9 11:51
Top
Re: Is there a way to add new ships to the game (using the same model as existing ships)?
Just can't stay away
Joined:
2012/5/22 20:21
Group:
Registered Users
Posts: 252
Offline
I managed to get Pygar working perfectly, plus i did a dockable Sprague as well.

With Pygar you have to move the follow camera otherwise it will clip one of the walls as the view rotates round during landing. Easy to do once you look through one of the files.

Sprague needed serious surgery to work in mp, but got there in the end. In fact it was my gf at the time who was used to working with lua scripts who sorted it out for me lol.

There's so much that's included with FL that isn't in the final game, but works if you code it in. There's various missing weapons fx, thruster fx, code for changing the price randomly every time you dock, blah blah blah. So much in there if you spend the time.

Posted on: 2022/6/11 18:02
Top
« 1 (2)