Are you, in fact, a pregnant lady who lives in the apartment next door to Superdeath's parents? - Commodore

Create an account  

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

(January 13th, 2019, 12:45)Ramkhamhaeng Wrote: Now, as the RB games apparent running stable, I want introduce our way to speed up the joining to a Pitboss game. smile

As PB player, you probably notice the annoying slow transfer of the save game (10kb/s). We developed a solution for this problem and bypasses the save game loading by an HTTP request. This leads to an almost instantly loading of the game. The PB games at Zulan's server already support the new save transfer variant.
The default save loading algorithm is still available and if you do not want install this tool 'from an unknown source', skip the rest of this post. wink


=== 1. How it works ===
I didn't changed the Civ4 executable directly, but wrote a wrapper application called 'BTS_Wrapper.exe'. This program starts Civ4:BTS and remap (hooking) the network related functions of Civ4 to a filter which detects the 'save loading commads'.
Due this approach…
  • … the wrapper exe needs the same firewall settings as the Civ4:BTS executable. Windows treats them as different programs.
  • … Some anti virus programs could warn because of the hooking. They can not distinct between this harmless tool and malware. I do not see a way how to solve this trust-problem, but published the code of the Wrapper here. rolleye
Sketch:

2. Installation instructions:
  • Unzip the content of https://kirk.zulan.net/pb/BTS_Wrapper_v9...py_fix.zip
    into your Civ4:BTS-installation directory.
  • Replace Civ4BeyondSword.exe by BTS_Wrapper.exe in your start link of the game, i.e
    ...\BTS_Wrapper.exe mod= RtR_4.0.0
    Example screenshot for an other mod
    [Image: Civ4_verkn%C3%BCpfung_ini.png]
  • Now, join a PB game. The loading bar should disappear within a second. If it does not work or an error occurs, please check for the log-file BTS_Wrapper.log in %TMP%. (%TMP% is a variable which refers to C:\Users\[USERNAME]\AppData\Local\Temp or similar).

Regards

P.S. It could also be used in normal MP-games, but this feature is disabled as default. Take a look on the
Github page if you want enable it.

Question: How do I do this with a steam version of BtS? I followed instructions and it states that MSVCP100.dll is missing.
Current games (All): RtR: PB83

Ended games (Selection): BTS games: PB1, PB3, PBEM2, PBEM4, PBEM5B, PBEM50. RB mod games: PB5, PB15, PB27, PB37, PB42, PB46, PB71 PB80. FFH games: PBEMVII, PBEMXII. Civ 6:  PBEM22 PBEM23Games ded lurked: PB18
Reply



Messages In This Thread
Description of BTS_Wrapper application - by Ramkhamhaeng - January 13th, 2019, 12:45
RE: Description of BTS_Wrapper application - by Krill - November 11th, 2019, 10:09
PBSpy not usable without login - by Ramkhamhaeng - June 28th, 2020, 11:46

Forum Jump: