3rd Party Unit Addition

3rd Party Unit Addition

Discuss game development here, from a distinct game project to an accessible third-party mutator, down to the interaction and design of individual units if you like.

Moderator: Moderators

Post Reply
User avatar
adamwalker13
Posts: 17
Joined: 19 Mar 2006, 02:08

3rd Party Unit Addition

Post by adamwalker13 »

When using 3rd party units with spring, do you just plce them in the base directory? and if so, can you use a zip file containing multiple UFO files, which will still be read by the game? or does it have to be a HPI or UFO...
User avatar
SinbadEV
Posts: 6475
Joined: 02 May 2005, 03:56

Post by SinbadEV »

You used to be able to just dump hpi or ufo's in the root directory... but it made too much of a mess so I think they took it out...

You can try it though...

If you want to add 3rd party units the right way...

http://taspring.clan-sy.com/wiki/Simple_Mod_Tutorial

skip to Step 6...
User avatar
adamwalker13
Posts: 17
Joined: 19 Mar 2006, 02:08

Post by adamwalker13 »

you can still add UFO's in the base directory, I was just wondering if you could contain them all within a large archive (zip/rar/hpi/ufo/z7b etc) and the game would still read them.
User avatar
zwzsg
Kernel Panic Co-Developer
Posts: 7052
Joined: 16 Nov 2004, 13:08

Re: 3rd Party Unit Addition

Post by zwzsg »

adamwalker13 wrote:When using 3rd party units with spring, do you just plce them in the base directory? and if so, can you use a zip file containing multiple UFO files, which will still be read by the game? or does it have to be a HPI or UFO...
ufo are already a custom format serving the same purpose as zip. Ufo/hpi are already a compressed archive format. Zipping ufo would be like raring zip. What I mean, is, unpack all your units ufo, then repack them in a single ufo, et voilà. Here you should found tools such as HPIView/HPIDump/HPIPack/HPIwhatever, in case you don't know who to unpack and repack ufo. Oh and ufo and hpi are the same.

Of course, it would be a lot more better if, while your stuff is unpacked, you added a modinfo.tdf, before repacking. Just look and copy the modinfo.tdf of another mod, you'll see it's extremely short and easy. With a modinfo.tdf, and if the zipped/7zipd/ufoed pack is placed into /mods/ instead of the root, suddenly your mod appears in the mod drop down box of the lobby, and is a lot more easier to quickly turn on and off without having synch error every time.
Post Reply

Return to “Game Development”