Topic: OP+ Question  (Read 7538 times)

0 Members and 1 Guest are viewing this topic.

jdmckinney

  • Guest
Re: OP+ Question
« Reply #60 on: July 30, 2003, 06:23:27 am »
Really? Does that turn it on or off for all cartels? That's a nice thing to have; shame it's not documented. What else should modders know about?

FireSoul

  • Guest
Re: OP+ Question
« Reply #61 on: July 30, 2003, 06:27:34 am »
Quote:

Really? Does that turn it on or off for all cartels? That's a nice thing to have; shame it's not documented. What else should modders know about?  




nothing else that I know of..
I have documented the information on 25410 tricks on my sources and utils page:


    About patch 2.5.4.10:
    There are 2 hidden features in 25410. This is how you use them.
    1- New Arcs. Edit the shiplist and put in these arcs where you want them.
    FALX/FARX -> FAL/FAR + right down rear
    LSRF/RSLF -> LS+RF / RS+LF missing arcs
    RRP/RLP -> Rear plasma arcs good for some tugs and HDWs.
    LR -> L+R arc used on the Hydran Fire Support Pallet

    2- Disable Engine Doubling for all pirates. (Useful for Mods). Add AllowEngineDoubling=0 to the [Network] section of the sfc.ini to disable engine doubling for all pirates.

jdmckinney

  • Guest
Re: OP+ Question
« Reply #62 on: July 30, 2003, 09:45:53 am »
OK, so if this is an sfc.ini change, how is that useful to anyone other than those playing a single-player mod? Is there a way to disable it in PvP for GSA or D2? Does it only affect AI use of doubling, or does it take it out altogether (meaning players can't double, either)?

Sorry for all the questions, but we need to know a little more.

Bonk

  • Guest
Re: OP+ Question
« Reply #63 on: July 30, 2003, 09:53:26 am »
Very cool! (AllowEngineDoubling=0 that is...)

Any ideas on how to do this easily from an installer (NSIS or SFX/batch) without overwriting the whole sfc.ini file? I suppose I could figure it it out for myself, but hey why repeat the effort if someone has already figured out how.

I'm also curious about the NSIS installer, I've figured out simple scripts (get installation folder, set output folder, copy a few files...). I'm just using the "File" command but is there a way to drop in whole folders? I have a huge mod I'm working on and would rather use NSIS than the self exctracting rar (which runs a batch on completion) I am using now, but I would rather not have to make hundreds (thousands?) of "File" lines in my NSIS script...

Ah, scratch that second question, I just found the answer - use the /r switch on the "File" command! I also just figured out how to run a batch or other extrernal executable during the NSIS install (Exec, ExecShell or ExecWait), as well as the CreateShortCut command, too cool.

Oops, scratch the first question too! The NSIS command "WriteINIStr" will do the trick! That NSIS installer is just dandy!

Duh, I guess the answer to my questions was: RTFMS!   ...now I have a bunch of work to do...  

Bonk

  • Guest
Re: OP+ Question
« Reply #64 on: July 30, 2003, 10:03:49 am »
 
Quote:

  OK, so if this is an sfc.ini change, how is that useful to anyone other than those playing a single-player mod? Is there a way to disable it in PvP for GSA or D2? Does it only affect AI use of doubling, or does it take it out altogether (meaning players can't double, either)?




I intend to use it on a mod I want to use for a D2 server. If everbody downloads and installs, no problem.
Using the NSIS installer, I intend to create a shortcut that will reset files to stock to allow GSA play and another to reconfigure the mod. I believe that using the NSIS system I could also create shorcuts that will just turn that switch on and off as desired (using WriteINIStr and DeleteINIStr) in additional executables created with NSIS included in the overall installation. Alternatively one could skip creating those shorcuts and the user can just install and uninstall the whole mod as desired.  
« Last Edit: December 31, 1969, 06:00:00 pm by Bonk »

Bonk

  • Guest
Re: OP+ Question
« Reply #65 on: July 30, 2003, 10:48:41 am »
I just created two such executables like so:

EngineDoublingOff.nsi
Code:

Name "EngineDoublingOff"
OutFile "EngineDoublingOff.exe"
InstallDirRegKey HKLM "SOFTWARE\Taldren\Starfleet Command Orion Pirates" "Directory"
Section "" ;
WriteINIStr "$INSTDIR\sfc.ini"  "Network" "AllowEngineDoubling" "0"
SectionEnd ;




EngineDoublingOn.nsi
Code:

Name "EngineDoublingOn"
OutFile "EngineDoublingOn.exe"
InstallDirRegKey HKLM "SOFTWARE\Taldren\Starfleet Command Orion Pirates" "Directory"
Section "" ;
DeleteINIStr "$INSTDIR\sfc.ini"  "Network" "AllowEngineDoubling"
SectionEnd ;



   

Pestalence

  • Guest
Re: OP+ Question
« Reply #66 on: July 30, 2003, 11:28:05 am »
If you are using the switch in the SFC.ini file for engine doubling... the HOST of the game will be the standard... IE

if bonk had engine doubling set to 0

and I had it set to 1 to allow engine doubling...

then it depends on who hosts...

say Bonk hosts.. pirates have no engine doubling

if I host, Pirates have engine doubling... it is that simple...

 

Bonk

  • Guest
Re: OP+ Question
« Reply #67 on: July 30, 2003, 11:34:38 am »
Ah, thanks for the explanation Pestalence, It makes sense. I was wondering about that too.
So if used in a mod for a D2 server it should work fine. (Will be set to zero for all players)  
« Last Edit: December 31, 1969, 06:00:00 pm by Bonk »

jdmckinney

  • Guest
Re: OP+ Question
« Reply #68 on: July 30, 2003, 01:24:51 pm »
Not unless you perform a CRC check on the sfc.ini (can it be passed/failed?) or everyone plays by the rules. Otherwise, anyone can change the setting on their end -- not that they would, but they could.

Bonk

  • Guest
Re: OP+ Question
« Reply #69 on: July 30, 2003, 02:39:54 pm »
Yes, I realise that, I was going to mention that it would be nice if it could be included in the validatedclientfiles folder but each user will have a different sfc.ini because of resolution settings, install date etc.. so it wouldnt work anyway even if the security server could handle it. I have already tried including the NWMissionConfig.gf  (From the OP Configurable MIssions Beta) in the validatedclientfiles folder but it will not work. (another potential exploit). It seems the security server can only validate .exe .scr and .txt files.  Thanks for mentioning it anyway.  
« Last Edit: December 31, 1969, 06:00:00 pm by Bonk »

FireSoul

  • Guest
Re: OP+ Question
« Reply #70 on: July 30, 2003, 03:56:19 pm »
Quote:

Not unless you perform a CRC check on the sfc.ini (can it be passed/failed?) or everyone plays by the rules. Otherwise, anyone can change the setting on their end -- not that they would, but they could.  




Not a good idea. sfc.ini ocntains the player's name, as well as settings such as volume, stored IP addresses, etc.
It is going to be different for each player. I don't think there's a way to check it.

Bonk

  • Guest
Re: OP+ Question
« Reply #71 on: July 30, 2003, 04:14:40 pm »
Correct! (see my last post...)  

FireSoul

  • Guest
Re: OP+ Question
« Reply #72 on: July 30, 2003, 04:16:37 pm »
It'll have to use the honor system..

Bonk

  • Guest
Re: OP+ Question
« Reply #73 on: July 30, 2003, 04:31:20 pm »
Yup, should be OK. We havent seen any one edit their NWMissionConfig.gf on LB4 that we know of. With engine doubling, it makes a noise both players can hear (?), so your opponent would know right away. I think all the players here are interested in a good match and a little fun without cheating anyway, so no need to worry about it much I guess.