As a French person I feel like it's my duty to explain strikes to you. - AdrienIer

Create an account  

 
[TECH] Announcement thread for Pitbosses/NatNeg Server hosted by Zulan/Ramk

pb65, Pindicator has a runtime error.
"Superdeath seems to have acquired a rep for aggression somehow. [Image: noidea.gif] In this game that's going to help us because he's going to go to the negotiating table with twitchy eyes and slightly too wide a grin and terrify the neighbors into favorable border agreements, one-sided tech deals and staggered NAPs."
-Old Harry. PB48.
Reply

Hello. Friend and I are trying to get targeting for mod working in Linux using wine. Having trouble creating shortcut. Does any one have a full example string that they use? Also, any tips would be appreciated.
Reply

I created a bash file to enable a menu shortcut in Mint 20.1 Cinnamon - so for CtH 3.0.2, I entered this into a text editor:

Code:
#!/bin/bash
cd "/home/YourDirectoryNameHere/.wine32/drive_c/Program Files/Civ4/Sid Meier's Civilization 4 Complete/Beyond the Sword/"
WINEPREFIX=~/.wine32 wine BTS_Wrapper.exe "mod= CloseToHome_3.0.2"

I saved that simple text file as just "CtH_3_0_2" and created a shortcut to run it; for instance, if you put the bash file in an as-though-it-were-a-Windows-machine BtS "My Games" folder, the shortcut might read, in full:

Code:
bash /home/YourDirectoryNameHere/Documents/My\ Games/Beyond\ the\ Sword/CtH_3_0_2

Not sure if this differs between different linux builds but I would imagine it should work basically the same way.  It's possible your BtS filepath (in the Bash file) will be different (e.g. involving Steam or whatever) if you have a different version of Civ than I do too; just use the actual filepath.

For details on how to set up BtS itself under wine, see the "Multiplayer after Gamespy" thread, starting with this post.  I hope this helps!
Reply

I'm also using a bash script for startup, but if you want use a desktop shortcut you could define it in this way:

Code:
[Desktop Entry]
Name=Civ4:BtS with Mod
Comment=Start Civ4:BtS with given mod
Path={YOUR_PATH_TO_CIV4BTS}
#Exec=wine Civ4BeyondSword2015.exe "mod= CloseToHome_2.0.5"
Exec=env WINEPREFIX="{YOUR_WINEPREFIX_FOR_CIV4}" wine BTS_Wrapper.exe multiple mod= "PB Mod_v9"
Icon=Civ4BtS-1
Terminal=false
Type=Application
Categories=Game;

Notes:
• I inserted an example startup for the BTS_Wrapper.exe and one for Civ4BeyondSword2015.exe
• You as to adapt {YOUR_PATH_TO_CIV4BTS} and {YOUR_WINEPREFIX_FOR_CIV4}
• If you only use the standard-prefix for all wine programs you could omit the definition of the WINEPREFIX variable.
• The *.desktop-files do not support environment variables like $HOME on its own. So use the full paths or encapsulate your command with 'sh -c'

• If you want a proper Icon for the entry you need to convert the *ico-File manually because its format is not supported directly:

E.g. with Imagemagick's convert tool:
Code:
convert {YOUR_PATH_TO_CIV4BTS}/Assets/res/Civ4BtS.ico ~/.local/share/icons/Civ4BtS.png
Creates Civ4BtS-0.png, Civ4BtS-1.png, and Civ4BtS-2.png

• Maybe you noted the 'multiple' argument in the startup command. This is useful to start multiple instances of Civ4.
• An other useful argument is '/fxsload'. This can be used to load a save game. Good for debugging stuff smile
A drawback is the syntax. You need to give the full path in Windows-Path-Style.
Example call:
Code:
WINEDEBUG=-all WINEPREFIX="/home/{USERNAME}/.local/share/wineprefixes/wine32" wine BTS_Wrapper.exe "/fxsload=\"C:\\users\\{USERNAME}\\Documents\\My Games\\Beyond the Sword\\Saves\\single\\Test.CivBeyondSwordSave\"" multiple mod= "PB Mod_v9"
Reply

Hey Ramkh,

I'm currently timing out when connecting to PB69, but I can still connect to PB90. To my knowledge, I haven't changed any settings since my last successful connection to PB69 and now. Any ideas what I did to cause me to bounce off Pb64? (Other players can successful connect to '64 still. noidea)
There is no way to peace. Peace is the way.
Reply

Hello Nauf,

please re-connect to your IPS, e.g. by restarting the router or wait approx. 20 minutes.
I assume that the routing of your packages for this game did 'reaching on port 0' on Zulan's Server side.

You:2056 => NAT464-Translation by your ISP => YouAsSeenByZulan:0 => Zulan:3039

And Port 0 didn't work. This translation is saved for several minutes by your ISP.
Reply

(January 17th, 2023, 05:44)Ramkhamhaeng Wrote: • An other useful argument is '/fxsload'. This can be used to load a save game. Good for debugging stuff smile
A drawback is the syntax. You need to give the full path in Windows-Path-Style.
Example call:
Code:
WINEDEBUG=-all WINEPREFIX="/home/{USERNAME}/.local/share/wineprefixes/wine32" wine BTS_Wrapper.exe "/fxsload=\"C:\\users\\{USERNAME}\\Documents\\My Games\\Beyond the Sword\\Saves\\single\\Test.CivBeyondSwordSave\"" multiple mod= "PB Mod_v9"

Uh, I've just come across this, I didn't know this trick! But does it work for pitboss too? I mean, can I start the pitboss server and autoload a savegame? I tried this shortcut but it didn't work:


"C:\FOLDER\Civilization 4\Civ4\Beyond the Sword\Civ4BeyondSword_PitBoss_Zulan.exe" mod= "Realism Invictus"\" /ALTROOT=C:\FOLDER\_http_aa.bb.cc.dd /fxsload="C:\FOLDER\_http_aa.bb.cc.dd\Saves\pitboss\Pitboss_BC-0220.CivBeyondSwordSave"

I also tried 

"C:\FOLDER\Civilization 4\Civ4\Beyond the Sword\Civ4BeyondSword_PitBoss_Zulan.exe" /fxsload="C:\FOLDER\_http_aa.bb.cc.dd\Saves\pitboss\Pitboss_BC-0220.CivBeyondSwordSave" mod= "Realism Invictus"\" /ALTROOT=C:\FOLDER\_http_aa.bb.cc.dd

but still no luck. Pitboss server starts, but I still need to select mod (it actually tells me it's loading the correct mod), DirectIP/LAN, NewGame/Scenario/LoadGame... so no autosave autoloading.
Reply

/fxsload does not work for Pitboss-Games :-( That was one reason for developing the 'pbmod'. The mod changes(*) the 'Assets/Python/PitBoss/PbWizard.py' file. Modded version is reading a save path from a json-config file.
Reply

(May 27th, 2023, 16:21)Ramkhamhaeng Wrote: /fxsload does not work for Pitboss-Games :-( That was one reason for developing the 'pbmod'. The mod changes(*) the 'Assets/Python/PitBoss/PbWizard.py' file. Modded version is reading a save path  from a json-config file.

I thought something like this. I merged an old version of your mod into mine, "Rise of Mankind - A New Dawn". I just didn't want to do it all over again for Realism Invictus and I was looking for easier solutions. frown
But I start thinking it's worth it. Thanks again Ramk, you're a huge source of knowledge smile
Reply

since I'm still getting mails every few days, RB PB 68 can be taken off the server smile
As always, many thanks for hosting!
Reply



Forum Jump: