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

Create an account  

 
Planetfall PBEM Tech Thread

On a related note: T-hawk, can you please save us & give Selrahc his tech?
Reply

Sareln Wrote:Hey Maniac, another bug for you; I actually know the solution to this one. It appears that when you build the Unity Library in PBEM, you don't get your free tech & a message telling you you already grabbed your free tech. I ran into a similar problem in EitB, it came in with some code from the unofficial patch that set a flag when someone got granted a free tech and then cleared it when it granted the tech. The problem is, this flag isn't saved to the save-game, so in PBEM you never get a chance to pick before you get the default flag which says you get no Tech. Should be a 2 line fix.

I'll have a look at this and the stockpile energy bug in July, when I'm off work. Though if you could point me at the exact two lines, it would save time. :D

During a blitz, do you exchange saves, or do you play simultaneous?
Reply

I've added the two lines.
Reply

I'm away from my Civ computer for the next several days, and in any event it would take some startup time for me to get the Planetfall code base up and running to compile.

I'm hoping Maniac can help you, probably more easily than I can. My general approach for fixing things like this is to patch some code into a function such as CvPlayer::selectUnit, with a call to setHasTech. So with such a modified DLL in place, you can load the game and click any unit to get the tech applied.
Reply

T-hawk Wrote:I'm away from my Civ computer for the next several days, and in any event it would take some startup time for me to get the Planetfall code base up and running to compile.

I'm hoping Maniac can help you, probably more easily than I can. My general approach for fixing things like this is to patch some code into a function such as CvPlayer::selectUnit, with a call to setHasTech. So with such a modified DLL in place, you can load the game and click any unit to get the tech applied.

Wait, when you .dll mod you get around the save-game checker?
Blog | EitB | PF2 | PBEM 37 | PBEM 45G | RBDG1
Reply

Maniac Wrote:I've added the two lines.

Oh good. It was the m_bChoosingFreeTech variable yes?

So added lines:

pStream->Write(m_bChoosingFreeTech);

and

pStream->Read(m_bChoosingFreeTech);
Blog | EitB | PF2 | PBEM 37 | PBEM 45G | RBDG1
Reply

My experience is that even simply changing the datestamp of a DLL, without changing any code, causes Civ4 to say the files have been modified. confused I've tried after discovering a coding mistake involving invisibility in my own ongoing PBEM... frown (fixed in v16c wink)

Is it possible to play a PBEM turn as DirectIP or something for a couple turns? In that case the problem can be circumvented, no?
Reply

Sareln Wrote:Oh good. It was the m_bChoosingFreeTech variable yes?

So added lines:

pStream->Write(m_bChoosingFreeTech);

and

pStream->Read(m_bChoosingFreeTech);

Those were lacking, yes. I don't really understand the choosingfreetech popup code though, so I can't say for sure if things are fixed.
Reply

Maniac Wrote:Those were lacking, yes. I don't really understand the choosingfreetech popup code though, so I can't say for sure if things are fixed.

If it's the same set of code from EmperorFool from the Unofficial patch, that should fix it.
Blog | EitB | PF2 | PBEM 37 | PBEM 45G | RBDG1
Reply

Maniac Wrote:My experience is that even simply changing the datestamp of a DLL, without changing any code, causes Civ4 to say the files have been modified. confused I've tried after discovering a coding mistake involving invisibility in my own ongoing PBEM... frown (fixed in v16c wink)

Is it possible to play a PBEM turn as DirectIP or something for a couple turns? In that case the problem can be circumvented, no?

We thought about trying that last night, but Selrahc's Internet was being sporadic and Nicolae's firewall uncooperative. I wonder though, if we could find someone to play the game as hotseat for all of us until after Selrahc picks his tech, that might do it...
Blog | EitB | PF2 | PBEM 37 | PBEM 45G | RBDG1
Reply



Forum Jump: