How many commands can FLMM process?
-
I just replied but my connection crashed :-x So if I might sound impatient in the following, you know why
Bullwinkle wrote:
OK, so you only make the first entry in InfoCardMap? I guess that makes sense, based on your request to Crazy.Yes, these are the kind of entries InfoCardMap.ini is meant for, right?
There is a pair of two ids_infos in InfoCardMap.ini , and the first of these should also be used in the base entry in the starsystem .ini file.
Bullwinkle wrote:
This is really awesome, Moonhead. Not at all weird in a bad sense… just unique. Or uncommon, at least, because I see in the archived thread that Lancer Solurus does/did this, as well.Well it’s a lot of work, and as long as i haven’t even finsihed the foundations, it’s a little early to celebrate this method. I might run into limitations, or into other nastiness i didn’t foresee, or just get demoralized and quit…
Bullwinkle wrote:
So what did you wind up doing about rumors? Comment out MiscText.dll from Freelancer.ini and replace it with your own IDs in script?
No need to comment out MiscText.dll. Besides wouldn’t that screw up many stock ids_names and ids_infos?
Haven’t really looked into rumours and news yet (since “I’m back”) but it’s possible to do that with XML. Note that the first character is cut off, so start with a space or a _ or an X, whatever.
Bullwinkle wrote:
Maintaining rumors along with base, system, and markets would be awesome…Yep. And it can be done.
There’s two things were XML created ids_names and _infos don’t work: Factions and Fields (Asteroids and Nebulas) because the game uses multiple occurences of these names at fixed intervals from each other (with small variations) in bribes and missions. So these still need to be done by hand, using FLED-Ids or a similar tool. You can add about 50 of each (50 factions and 50 fileds, more or less).
-
adoxa wrote:
You’ll need upx (or equivalent) to unpack it first,
Ouch.
I’m afraid I have no idea how to use this… There is some info included, but the person who wrote it assumes the reader is familiar with how to use command line utilities.
I could trail-and-error if the program with indeed open a command line window… But when i run it, it seems to open and close within a quarter of a second.
Care to talke me thru it?
Or better, can’t I just use Hex Workshop on the un-unpacked file (prolly not, but it would be so nice)?
-
Right, the only reason to comment out MiscText.dll would be to change existing items. Otherwise, as you say, just make new ones.
Here is FLMM 1.4beta4, unpacked and hacked to a 20,000 limit per adoxa’s offsets.
I only tested that it runs… beyond that you will have to test yourself.
And, yes, it is OK to leave it unpacked. This version is unpacked, so you can see the changes (or change them yourself).
Regarding searching XML files, you might appreciate a programmer’s editor. NotePad++ is free. UltraEdit has an excellent help file and support. Both are extremely popular editors that can, among many other things, quickly search a tree for files containing a string of text.
Either are terrific tools for working with multiple INI files or XML scripts.
EDIT: For others reading this thread, if you need the full FLMM 1.4 installer, it is here: http://igx89.home.comcast.net/~igx89/FLMM_Downloads.html
.
-
Bullwinkle wrote:
Right, the only reason to comment out MiscText.dll would be to change existing items. Otherwise, as you say, just make new ones.Here is FLMM 1.4beta4, unpacked and hacked to a 20,000 limit per adoxa’s offsets.
I only tested that it runs… beyond that you will have to test yourself.
And, yes, it is OK to leave it unpacked. This version is unpacked, so you can see the changes (or change them yourself).
Regarding searching XML files, you might appreciate a programmer’s editor. NotePad++ is free. UltraEdit has an excellent help file and support. Both are extremely popular editors that can, among many other things, quickly search a tree for files containing a string of text.
Either are terrific tools for working with multiple INI files or XML scripts.
EDIT: For others reading this thread, if you need the full FLMM 1.4 installer, it is here: http://igx89.home.comcast.net/~igx89/FLMM_Downloads.html
.
Hey Bullwinkle, thanksalot man!! I’m a true commandline-analphabetic. I guess I can still use Adoxa’s recipe to hack your version up to 50,000, if necessary. Btw the only reasonable way to find out if it works, is by not ever running into a limit; else I would have to create some sort of dummy mod, that just puts FLMM to work… Well maybe I can do that… I’ll see.
I’ll switch to my other comp to try it out later (my new modem is about to arrive just about right now).
I remember once having used a text editor that was able to do bulk replacements of more than one line (the same you can do in NotePad and WordPad with ctrl+H, but not limited to edits within a single line). Can NotePad++ do such stuff? Well, I’ll find out within some hours.
-
Do not forget that your clients will need the same hacked FLMM as well.
-
Moonhead wrote:
Hey Bullwinkle, thanksalot man!! I’m a true commandline-analphabetic. I guess I can still use Adoxa’s recipe to hack your version up to 50,000, if necessary. …I remember once having used a text editor that was able to do bulk replacements of more than one line (the same you can do in NotePad and WordPad with ctrl+H, but not limited to edits within a single line). Can NotePad++ do such stuff?
You are welcome, and thank you for the paradigm-shifting info about FLMM 1.4. And thanks to adoxa who did the hard part regarding the hack!
FLMM -> 64k
Attached is the 1.4 EXE hacked to 64k (minus a few just to be safe). 64k is the maximum number of entries to a single Freelancer infocard DLL.As adoxa said, there are no guarantees that this will work. The FLMM docs say that the limit is arbitrary, so we are assuming that it is simply a limit to prevent infinite loops.
Multi-Line Search and Replace
Sure, that is a cinch with Notepad++, and it is also possible with Word (although not Wordpad or Notepad).The trick is to know the search expressions that the editor uses to represent hidden characters. The most common hidden characters that you will need are:
Tab
CR (Carriage Return)
LF (Line Feed)Windows programs typically mark the end of a line with CR+LF or just a CR. Unix-style is an LF. So, when working with files from unknown sources, you may have to try a couple of tests to make sure that you know the correct end-of-line character(s) for that file.
In Notepad++, the Search expressions are:
Tab = \t
CR = \r
LF = \nFor example, lets say that you want to sell your new whizzy_gun at all Bases. In market_misc.ini:
Search for:
_base\r\nReplace with:
_base\r\nMarketGood = whizzy_gun, 0, -1, 10, 10, 0, 1\r\nNote that in Search Mode, you want to select “Extended”. I attached a picture so that you can see what it looks like.
.
-
Bas wrote:
Do not forget that your clients will need the same hacked FLMM as well.Yes, we talked about that earlier in the thread. Moonhead pointed out that it would be easy enough to use the xml scripts to create a DLL, then distribute the DLL as part of a release mod (in 1.31 format).
As an organization and test environment, this is pretty cool. It is a huge improvement over modifying files in place and trying to keep track of the changes.
Also, the ability to use the same generated ID in multiple places gives this technique an advantage over the current version of FLDev, as far as I can tell from the limited docs. Maybe FriendlyFire will address that ability in the future, if he has not already done so.
-
Since we have been talking about programmer’s tools for Freelancer modding, another priceless tool is a good “diff” program, such as WinMerge.
WinMerge lets you compare two versions of a file. It lets you see the differences between the files, and allows you to selectively update one file from another.
WinMerge is pretty awesome by itself, but it becomes even more powerful when used with a version control system such as SubVersion (SVN). Sushi wrote a nice tutorial on SubVersion.
Note that Notepad++ and WinMerge are client-side tools. SubVersion is a client-server system, so you will need to have a host server for the repository. There are quite a few free hosts, including:
TheStarport Forge: http://forge.the-starport.net/
http://code.google.com/
http://xp-dev.com/
www.fireforge.net.
-
Bas wrote:
Do not forget that your clients will need the same hacked FLMM as well.As pointed out, they won’t: a distributional (is that a word?) version of such a mod, can consist of the modified .ini files (and maybe some other modified files, like the .fl files), the DLLs and additional .cmp’s, .3db’s, .txm’s etc. It would not have to contain any more .xml files than a simple script.xml, and will therefore be FLMM-version independent. (I am curious whether this .xml-free version will be signifcantly smaller in size.)
In effect, the distributional version would simply be a zipped copy of the entire Freelancer folder while the mod is installed, minus any files that were not modified.
Of course, the .xml-plethora version of the mod could also be distributed - and indeed the package would then have to include the hacked FLMM, instructions how to use it etc. Not a big deal.
Note that this is all hypothetical. For various reasons (re-learning certain things, learning new things, other things I like to do, other things I need to do, etc.) my progress has been and will be rather slow. I’d be happy to have it finished some years before NASA establises their base at the Moon’s southpole (Maybe I should speed things up though, in case that 2012 Maya Doomsday hype proves to be true)
-
Bullwinkle - thanks again, for both the info on NotePad++ and WinMerge.
I’m at my work now (nightshift, usually it’s rather quiet but sometimes it can be nasty) and I do have a limited internet connection thru my employer’s network, meaning I can use IExplorer, but cannot download anything; neither can I use drives or devices to move stuff from this pc to my laptop (I can use webbased mail though, but then I’ll have to wait till I’m home to connect my laptop to the 'net). So downloading WinMerge will have to wait till tomorrow. I have Notepad++ already on my 'top though.
Tonight I’ll see how far I come with setting up a couple of star systems. A nice opportunity to try and test some things (like rumors and news)
-
Happy to help, Moonhead. I’m just giving back a little of what I have learned here at TSP and at the old TLR… plus maybe adding a new twist here and there.
Given the amount of work that you do with text files, I think that you will find Notepad++ and WinMerge to be extremely useful. You might have to take a little time to learn some of the deeper features, but both tools are far better than the built-in Windows editors.
Note that you can actually do file compares in Notepad++ (Plugins/Compare). However, WinMerge uses fewer keystrokes and WinMerge can be called from external programs (which is the way that I usually use it).
Keep us posted on your progress.
.