Jump to content
Sign in to follow this  
killswitch

Linux bug: won't load requiredversion=1.91 addons

Recommended Posts

I think I have found a rather serious bug in the current 1.91c Linux server:

A 1.91 linux server won't load any addons that have "requiredVersion=1.91" in its config.cpp. crazy.gif

Weird, huh!

It was the same thing back with 1.90: a 1.90 linux deddy wouldn't load 1.90-requiring addons. I didn't realise it back then

but remembered it now that I saw it again and did some research.

What you will see in the shell from where you start the server is that one of the class names of those 1.91-addons will be silently printed.

Lately we have gotten the marvellous BAS Chinook. Adding that addon to my linux server wont work:

one of two names are printed out by the server: BAS_Cargo or BAS_MH47185 on startup.

Result: missions containing 1.91 addons wont load.

I have verified this by unpacking the addons and removing the "requiredVersion=1.91" line.

Without them, the linux deddy loads the addon just fine and missions are go again.

I have added the offending line to other addons (who dont actually need 1.91) and they also stop being loaded.

So, Suma, I hope you will see this. Can you verify this?

Note: I don't think that removing the requiredVersion from all addons that actually need 1.91 is a very good idea.

Note 2: the 1.91 linux server loads addons with requiredVersion=1.90 and lower version numbers just fine.

The 1.90 linux version loads 1.89 addons and lower. See the pattern?

Share this post


Link to post
Share on other sites

Yea Big Bug With Linux server's with any addon that has 1.91 in the cfg file for it they just wont load.

I hope their well be a Fix for it.

Share this post


Link to post
Share on other sites

Wow, this explains why some missions just won't work with linux servers... the addons required are for 1.91... lol, and i spent hours searching the mission.sqm for any unusal stuff sad.gif

Share this post


Link to post
Share on other sites

same problem here please please please please please please please fix it i dont want to have to look for a windoes server and our servers due for renewal in a few weeks time sad.gif

Share this post


Link to post
Share on other sites

Killswitch: would it be possible (as a workaround) to change requiredversion in the addons to 1.90 ON THE SERVER ONLY? Cause it wouldn't be too big a deal to do that... probably i'm gonna try that anyway, but you could save me some time if this does not work for some reason wink.gif

Share this post


Link to post
Share on other sites

I think we have the problems identified. There seems to be some rounding error when doing version comparison on Linux. We hope to have a fix available within a week or so.

Share this post


Link to post
Share on other sites

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote (Suma @ 01 May 2003,18:25)</td></tr><tr><td id="QUOTE">I think we have the problems identified. There seems to be some rounding error when doing version comparison on Linux. We hope to have a fix available within a week or so.<span id='postcolor'>

So will you be rounding us all up to OFP 2? tounge.gif

Share this post


Link to post
Share on other sites

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote </td></tr><tr><td id="QUOTE">I think we have the problems identified. There seems to be some rounding error when doing version comparison on Linux. We hope to have a fix available within a week or so.<span id='postcolor'>

Good news! Many thanks, Suma!  biggrin.gif

Sneaky-wish:  A -mod= command line option just like the windows version, to organize the addons on the server.  wink.gif

Share this post


Link to post
Share on other sites

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote (Killswitch @ 01 May 2003,18:33)</td></tr><tr><td id="QUOTE">Sneaky-wish:  A -mod= command line option just like the windows version, to organize the addons on the server.<span id='postcolor'>

I see no reason why -mod option should not work with linux server. Are you sure it is not working?

Note: When using it, make sure to use only lowercase names for your mod folders and to pass lowercase names in the commandline.

Share this post


Link to post
Share on other sites

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote (Suma @ 01 May 2003,19:43)</td></tr><tr><td id="QUOTE"></span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote (Killswitch @ 01 May 2003,18:33)</td></tr><tr><td id="QUOTE">Sneaky-wish:  A -mod= command line option just like the windows version, to organize the addons on the server.<span id='postcolor'>

I see no reason why -mod option should not work with linux server. Are you sure it is not working?

Note: When using it, make sure to use only lowercase names for your mod folders and to pass lowercase names in the commandline.<span id='postcolor'>

i thought ./tolower command did that ?

as for -mod u lost me there

Share this post


Link to post
Share on other sites

About the -mod command line parameter...my mistake. I did some tests and found the correct way to express a list of mod folders in linux

As you may know, in windows you list them like this:

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">

OperationFlashpoint.exe -nosplash -mod=mods/misc;mods/BAS;mods/sebnam2 <span id='postcolor'>

And it will load any addons in mods/misc/addons, mods/BAS/addons and mods/sebnam2/addons just the way it should be.

In linux (or more exactly, in a unix bash shell), however, the semicolon is interpreted differently, so a little trick is neccessary.

To do something similar to the above on linux, one would write

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">

server -config=server.cfg -mod="mods/misc;mods/bas;mods/sebnam2"<span id='postcolor'>

The difference: on linux, if you have more than one mod folder, list them in a string enclosed by quotation marks.

This might be a thing to add to the linux server readme, by the way.

Share this post


Link to post
Share on other sites

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote (Killswitch @ 02 May 2003,00:49)</td></tr><tr><td id="QUOTE">About the -mod command line parameter...my mistake. I did some tests and found the correct way to express a list of mod folders in linux

As you may know, in windows you list them like this:

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">

OperationFlashpoint.exe -nosplash -mod=mods/misc;mods/BAS;mods/sebnam2 <span id='postcolor'>

And it will load any addons in mods/misc/addons, mods/BAS/addons and mods/sebnam2/addons just the way it should be.

In linux (or more exactly, in a unix bash shell), however, the semicolon is interpreted differently, so a little trick is neccessary.

To do something similar to the above on linux, one would write

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">

server -config=server.cfg -mod="mods/misc;mods/bas;mods/sebnam2"<span id='postcolor'>

The difference: on linux, if you have more than one mod folder, list them in a string enclosed by quotation marks.

This might be a thing to add to the linux server readme, by the way.<span id='postcolor'>

all our addons are in the addons and res addons folder so what would the linux command be for that also what benifit would i see from it?

thanks

Share this post


Link to post
Share on other sites

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote </td></tr><tr><td id="QUOTE">our addons are in the addons and res addons folder so what would the linux command be for that also what  benifit would i see from it?<span id='postcolor'>

You don't have to specify anything special for that - OFP and the linux server always loads its addons from the Res/Addons and Addons folders.

Indeed - you don't have to use a lot of extra folders to put your addons into. I do, however, and find it a good way to split up what after a while

becomes a huge normal Addons (or Res/Addons) folder with zillions of files.

Then, by just making different windows shortcuts to your game, you can load a different set of extra addons depending on what you're playing.

This also cuts down on OFP:s memory usage and if more people would do it, we would probably get a lot less postings abot "cannot load addon O.pbo" and the likes.

So: mod folders for good housekeeping, basically.

Share this post


Link to post
Share on other sites

are we any closer to a fix yet suma ?

thanks

Share this post


Link to post
Share on other sites

Just a Bump up the forum to see if theres a fix due soon?

Suma?? and response?

Thanks

Share this post


Link to post
Share on other sites

And if they are fixing it, maybe the checkfiles command could be fixed too for linux servers biggrin.gif

I don't care if it takes a little longer as long as the fix is coming at all.

Luckily there are not that many addons yet which do not work and you can normally put a fixed version (ie requiredversion string removed) on the server and they will work again...

Share this post


Link to post
Share on other sites

checkfiles command should be fixed and must be reworked on all versions. it's not working perfectly. many things missing in that option.

but the required version must be fixed first.

Greets

[CiA]Lobanak

Share this post


Link to post
Share on other sites

Just bumping the subject... any news regarding the fix for linux servers? Else, could everyone start listing addons that need to be fixed to run on linux servers? BAS MH47E addon seems to have the requiredversion=1.91 string in it... any other addons?

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×