Freelancer Community Network
Reminder: Internet Explorer 6 or below are NOT supported.
HomeHome
ForumForum
WikiWiki
DownloadsDownloads
ForgeForge
Multiplayer Connection Tutorial
Collapse/Expand Donations
Monthly costs: -50€
Income (ads): +25€
Donations (last month): +0€

Current balance: -65€
(last updated 2013/05)

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

Thanks!
Collapse/Expand Random Image
Collapse/Expand Poll
Would you be interested in Star Citizen modding?
Yes.
No, not interested in SC mods/modding.
No, not interested in SC in general.
Total Votes: 280
3 Comments
Collapse/Expand Login
Username:

Password:

Remember me



Lost Password?

Register now!
Collapse/Expand Chat
Collapse/Expand Twitter
Collapse/Expand Who's Online
24 user(s) are online (6 user(s) are browsing Forum)

Members: 2
Guests: 22

Carnifex/Reboare, dark_logan, more...
Collapse/Expand Links
Collapse/Expand Advertisement
There are currently 221 users playing Freelancer on 85 servers.
May. 25, 2013

Browsing this Thread:   1 Anonymous Users



 Bottom   Previous Topic   Next Topic  Register To Post

(1) 2 »


A Few Hidden Modder Tricks

Joined:
2008/6/25 22:47
From Charleston, South Carolina, United States
Group:
Registered Users
Posts: 45
Offline
After talking to Friendly Fire about a few tricks I discovered for modding Freelancer, he suggested the idea of starting a thread for other modders, as well as myself, to post pictures and information about tricks that they know that they've just been holding on to. Here's my trick;

Combining Two or More Files Into One

You may ask why do this, well for several reasons. One, it allows Freelancer to load slightly faster. After combining the ship goods with the shiparch, it cut the load time down by .8 sec., then when I combined initialworlds, empathy, and faction_prop, it cut the load time down by 1.9 sec. Also, by combining these files, it makes it substantially easier to mod. There's one downfall to this that any larger TC mod designer will love; 3rd party programs don't like this that much. Here are some pictures of how I created all new .ini files.

Open in new windowOpen in new window


Here's the links to those images so everyone can see better.
Freelancer.ini
Crafts.ini

Posted on: 2008/8/6 22:54
Report Top
Re: A Few Hidden Modder Tricks
Just can't stay away
Joined:
2008/2/22 13:33
From that dark place in the back of your mind..
Group:
Registered Users
Senior Members
Posts: 329
Offline
I wonder if this "crafts.ini" will have the same drawback that FF & CoT have recently found, if your ships aint in the shiparch.ini they will refuse to dock with anything, they still fly it's just that they get refused entry at every base.

Posted on: 2008/8/6 23:09
**shuffles of with a new headache**
Report Top
Re: A Few Hidden Modder Tricks

Joined:
2008/6/25 22:47
From Charleston, South Carolina, United States
Group:
Registered Users
Posts: 45
Offline
Crafts.ini is set up just like the shiparch.ini. It's just a new file I created. I've testing it and this works. You just have to get freelancer.ini to recognize it.

Posted on: 2008/8/6 23:14
Report Top
Re: A Few Hidden Modder Tricks
Starport Admin
Joined:
2009/2/21 21:42
Group:
Webmasters
Registered Users
Posts: 2986
Offline
I'm guessing that's because there still is one shiparch.ini file, it's just renamed. It's with two shiparch files that FL goes foobar.

Posted on: 2008/8/6 23:16
"Cynicism is not realistic and tough. It's unrealistic and kind of cowardly because it means you don't have to try."
-Peggy Noonan
Report Top
Re: A Few Hidden Modder Tricks

Joined:
2008/6/25 22:47
From Charleston, South Carolina, United States
Group:
Registered Users
Posts: 45
Offline
Wrong again. It still works fine for me. Just have to put the custom stuff before the original.

Posted on: 2008/8/6 23:19
Report Top
Re: A Few Hidden Modder Tricks
Home away from home
Joined:
2008/6/13 22:44
Group:
Registered Users
FLServer Admins
Senior Members
Posts: 540
Offline
My trick is not rly a trick its a tool that will make coding way easier than before.

The trick is called Notepad++ and allows to open up to 20 files in one window.
I has feature like viewing 2 files at the same time which is very useful while coding ships factions or other stuff that needs a few inis.
Notepad++ also counts each line and gives highlights section start/end aswell as lines with a ; this makes it alot easier to find errors.
The drag and drop funtions is great aswell as the search and replace functions.

In one word: I've just uninstalled MS word ;D

Notepad++ is a opensource project and can be downloaded at sourcefourge, u simply need to google it.

Greetings
Mind

Posted on: 2008/8/6 23:38
Open in new window
Report Top
Re: A Few Hidden Modder Tricks
Starport Admin
Joined:
2008/5/12 20:47
From The Netherlands
Group:
Registered Users
Senior Members
Posts: 1034
Offline
What ever happend with the people who used the VI editor for advanced features.....

Posted on: 2008/8/7 0:07
Open in new window
Report Top
Re: A Few Hidden Modder Tricks
Starport Admin
Joined:
2008/6/24 16:40
From http://www.freeworlds-tow.net/dev
Group:
Registered Users
Starport Admin
$$$ Supporters $$$
Posts: 1123
Offline
This was made by a developer of FWs when he was around. Thought this would be useful for many of you who use Notepad ++

Quote:

By: ViperKnight

I'd suggest anybody who does any sort of decent amount of INI coding to take 10 seconds or so to download Notepad++.

It's a great/fast notepad-like app which has cool support for things like code tags as well as billions of other cool things like auto tag closing and such.

It can be configured to completely replace Notepad if you want (so whenever something is told to open in Notepad, it uses N++ instead.

It can be downloaded at:
http://notepad-plus.sourceforge.net/uk/download.php

I'm currently creating a "custom language" file which will highlight Freelancer INI tags as well as other cool stuff (like automatic blocking and such). The main idea is it'll make navigating FL inis much easier as well as making things generally clearer and easy to see/read.

Here's a demo screeny:
Open in new window
And a full-screen one if you want to see the whole thing (warning: it's 1440x900):
http://i20.photobucket.com/albums/b222/ViperKnight/demoN.jpg

DOWNLOAD THE FL INI LANGUAGE READER HERE:
http://files.filefront.com/NP+FL+INI+ ... /;11393852;/fileinfo.html
It's called "NP_FL_INI_coder.zip".

Just unzip it into your Notepad++ folder. If you've installed it to work with only your user the file will have to go into "c:\documents and settings\ ~USERNAME\Application Data\ Notepad++\"

NOTES:
- I've had to create a couple of "fake" tags to close the code blocks since N++ won't except line returns (blank lines) as end points (very few IDEs will). I highly doubt these will have any detrimental effects as it doesn't add much to filesize or anything.
- The ";/" tag will close anything
- Some key words are very generic and may get highlighted in the wrong areas. In most cases it can't be avoided. It has no effect on the file itself.
- Normal FL tags DO NOT work properly due to the inability to read line breaks as block end points. At the moment it will just treat them as a bunch of nested tags.
- If everyone would like to adopt this, any new files we create should probably follow the new tag system (open with a tag, then always close it with ";/".
- If you wish to create a code block anywhere (say, to divide up NR ships and IN ships within the one shiparch file) I've allowed the ";[block]" and ;[/block]" tags to be used.
- Block tags appear in RED so they're easy to see.
- Comments appear in the standard green colour as well as italics.
- Some basic operators and words such as =, -, true, false etc will appear in a dark red colour.
-Number will apear in blue.


If I missed a tag, let me know and I'll add it to the file.

Posted on: 2008/8/7 6:42
Open in new window
Report Top
Re: A Few Hidden Modder Tricks
Home away from home
Joined:
2008/6/13 22:44
Group:
Registered Users
FLServer Admins
Senior Members
Posts: 540
Offline
Some of the things he's saying there are fixed in the latest version i use.

For example:
- Normal FL tags DO NOT work properly due to the inability to read line breaks as block end points. At the moment it will just treat them as a bunch of nested tags. (fixed, if not I'm sure there's a addon to fix that)

- I've had to create a couple of "fake" tags to close the code blocks since N++ won't except line returns (blank lines) as end points (very few IDEs will). I highly doubt these will have any detrimental effects as it doesn't add much to filesize or anything (seems to be fixed, never noted such a problem)

But hes right with:

I'd suggest anybody who does any sort of decent amount of INI coding to take 10 seconds or so to download Notepad++.

It's a great/fast notepad-like app which has cool support for things like code tags as well as billions of other cool things like auto tag closing and such.

Ill second that

Posted on: 2008/8/7 6:50
Open in new window
Report Top
Re: A Few Hidden Modder Tricks
Not too shy to talk
Joined:
2008/5/17 10:55
Group:
Registered Users
Posts: 95
Offline
I do a lot of ini editing as i dont use xml and have found Ultra Edit to be the best tool for me.

The main reason I have stuck with ultra edit is due to its very powerfull find and replace features and easy to use macros as well as its project file functionality, where you can dump all your inis into it, and perform find and replace and macros on them all at once.

Posted on: 2008/8/7 9:33
Report Top
Re: A Few Hidden Modder Tricks
Home away from home
Joined:
2008/6/13 22:44
Group:
Registered Users
FLServer Admins
Senior Members
Posts: 540
Offline
Notepad++ can do all that and much, much more.
Your should take a look at the addon galery
U can also do HTML coding with NP++ btw. u do HTML with it (sometimes).

Posted on: 2008/8/7 9:40
Open in new window
Report Top
Re: A Few Hidden Modder Tricks
Not too shy to talk
Joined:
2008/5/17 10:55
Group:
Registered Users
Posts: 95
Offline
Yes im sure it does much more, however, so does UE. 4yrs working with it and Im comfortable with all the features and there is nothing that I cant do with it.
You might want to check out Ultra Edits features.
http://www.ultraedit.com/products/ult ... t/ultraedit_features.html

Posted on: 2008/8/7 9:45
Report Top
Re: A Few Hidden Modder Tricks
Home away from home
Joined:
2008/6/5 16:18
From Germany
Group:
Banned!
Posts: 546
Offline
you mean the loading times when you launch the game?
(before the menu appears)

if so it would be interesting to know if there is a difference between decrypted files and encrypted ones

Posted on: 2008/8/7 10:16
Report Top
Re: A Few Hidden Modder Tricks

Joined:
2008/6/25 22:47
From Charleston, South Carolina, United States
Group:
Registered Users
Posts: 45
Offline
As in when the loading bar comes up once you click new game and such. I know that tenths of a second isn't much, but it's something.

Posted on: 2008/8/7 10:32
Report Top
Re: A Few Hidden Modder Tricks
Starport Admin
Joined:
2008/6/24 16:40
From http://www.freeworlds-tow.net/dev
Group:
Registered Users
Starport Admin
$$$ Supporters $$$
Posts: 1123
Offline
Quote:

you mean the loading times when you launch the game?
(before the menu appears)

if so it would be interesting to know if there is a difference between decrypted files and encrypted ones


I've been really interested in that myself. If anyone could look into that, I'd be very appreciative.

Posted on: 2008/8/7 14:31
Open in new window
Report Top
(1) 2 »