Announcement

Collapse
No announcement yet.

PBEM game...

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • #91
    I dont know how far can we go through with these codes i am writing some here is a sequence of attempts that should be tested one by one:

    1)
    Code:
    HandleEvent(BeginTurn) 'PBEM_ActuallyBeginTurn' pre {
    int_t tmpPlayer;
    int_t tmpRound;
    int_t ActualRound;
    	tmpPlayer = player[0];
    	tmpRound = GetCurrentRound();
    	ActualRound = tmpRound + 1;
    	Event: BeginTurn(tmpPlayer, ActualRound);
    }
    2)
    Code:
    int_t CanBeginTurn;
    
    HandleEvent(BeginTurn) 'PBEM_ActuallyBeginTurn' pre {
    int_t tmpPlayer;
    int_t tmpRound;
    int_t ActualRound;
    	if(CanBeginTurn == 0) {
    		tmpPlayer = player[0];
    		tmpRound = GetCurrentRound();
    		ActualRound = tmpRound + 1;
    		CanBeginTurn = 1;
    		Event: BeginTurn(tmpPlayer, ActualRound);
    		return STOP;
    	}
    	else{
    		CanBeginTurn = 0;
    	}
    }
    3)
    Code:
    HandleEvent(EndTurn) 'PBEM_ActuallyEndTurn' pre {
    int_t tmpPlayer;
    	tmpPlayer = player[0];
    	Event: EndTurn(tmpPlayer);
    }
    4)
    Code:
    int_t CanEndTurn;
    
    HandleEvent(EndTurn) 'PBEM_ActuallyBeginTurn' pre {
    int_t tmpPlayer;
    	if(CanEndTurn == 0) {
    		tmpPlayer = player[0];
    		CanEndTurn = 1;
    		Event: EndTurn(tmpPlayer);
    	}
    	else{
    		CanEndTurn = 0;
    	}
    }
    Does anyone know if a unit production time of a unit in a city decreses in the beggining of a turn or in its end?
    "Kill a man and you are a murder.
    Kill thousands and you are a conquer.
    Kill all and you are a God!"
    -Jean Rostand

    Comment


    • #92
      1) Gets stuck on the "loading..." screen forever while starting the PBEM game.

      2) Has no visible effect.

      3) Got stuck forever when i pressed the end turn button.

      4) Had no visible effect.
      Call to Power 2: Apolyton Edition - download the latest version (12th June 2011)
      CtP2 AE Wiki & Modding Reference
      One way to compile the CtP2 Source Code.

      Comment


      • #93
        So i guess we do need to get the sorce code then

        Anyone has any other idea?
        "Kill a man and you are a murder.
        Kill thousands and you are a conquer.
        Kill all and you are a God!"
        -Jean Rostand

        Comment


        • #94
          Originally posted by Pedrunn
          So i guess we do need to get the sorce code then

          Anyone has any other idea?
          Looks like

          I cant think of any other way round it for now, thanks for trying though Pedrunn.

          Originally posted by centrifuge
          D@mn, D@mn ,D@mn !!! Oh well, I was gonna give CTP1 PBEM a try anyway... I know its the wrong forum, but is anyone here interested in starting a game up of CTP1 PBEM with me?
          Sure why not. 1v1 or?
          Call to Power 2: Apolyton Edition - download the latest version (12th June 2011)
          CtP2 AE Wiki & Modding Reference
          One way to compile the CtP2 Source Code.

          Comment


          • #95
            I have one last idea - it's possible to call in SLIC the functions that the game uses to blank out the screen between turns on hotseat & PBEM, if we trigger those at some point we could (perhaps) save with a blacked out screen, but when there isn't a message box up to stop you from saving. Pedrunn - can you see a way to arrange that?

            Comment


            • #96
              Originally posted by Maquiladora

              Sure why not. 1v1 or?
              1 on 1 would be okay(though if anyone else wants to join in I'd say they are more than welcome). I think that I'll be at a disadvantage Mainly because I haven't played CTP1 since it came out (and then very little...) but I did recently start fiddling with it a little again. PM me, and we'll try to get something going.

              Comment


              • #97
                PBEM....just say the start time
                if you got room
                anti steam and proud of it

                CDO ....its OCD in alpha order like it should be

                Comment


                • #98
                  Platypus, you do realise this game we're organising is for CtP1 now?

                  CtP2 pbem is currently still "under development". Youre more than welcome to join the CtP1 game for now though.
                  Call to Power 2: Apolyton Edition - download the latest version (12th June 2011)
                  CtP2 AE Wiki & Modding Reference
                  One way to compile the CtP2 Source Code.

                  Comment


                  • #99
                    How about through SLIC making the end turn button dissapear or make it so that the mouse avoids it

                    But this probably isnt possible
                    Oxygen should be considered a drug
                    Tiberian Sun Retro
                    My Mod for Tiberian Sun Webmaster of
                    http://www.tiberiumsun.com

                    Comment


                    • How about through SLIC making the end turn button dissapear or make it so that the mouse avoids it
                      It is possible to make the end turn button dissapear. Not through slic though but through UI (ldl files) changes.

                      Yet i cant see how will this help
                      "Kill a man and you are a murder.
                      Kill thousands and you are a conquer.
                      Kill all and you are a God!"
                      -Jean Rostand

                      Comment


                      • Maquiladora, if you're still interested, let's give 1on1 CTP1 a go...

                        I've been trying to get my brother and brother-in-law, addicted to CTP2(like I am ), but I think that I'll get them started on CTP1 PBEM first. However, I'd like to get a game started so that I can get a feel for it...

                        Comment


                        • Sure, ill fire it up a little later with Mod Lite and mail you the save. 6 AI's, small/regular map i think. Ill put the AI on Prince anyway, seeing as i only started playing ctp1 again a few weeks ago too so
                          Call to Power 2: Apolyton Edition - download the latest version (12th June 2011)
                          CtP2 AE Wiki & Modding Reference
                          One way to compile the CtP2 Source Code.

                          Comment


                          • Sounds good

                            Comment


                            • Better not post anymore updates in here in case it looks like ctp2 pbem is working... Turn 0 sent btw
                              Call to Power 2: Apolyton Edition - download the latest version (12th June 2011)
                              CtP2 AE Wiki & Modding Reference
                              One way to compile the CtP2 Source Code.

                              Comment


                              • Interesting Civ3 Play the World is going to have PBEM

                                I wonder how it will implement Diplomacy (however as it is FIRAXIS i doubt they will bother) as long has its got multiplayer theve kept a there word (even if its the buggiest and worst made rubbish in the world)

                                EDIT: Im not trying to suggest FIRAXIS keep to there word
                                Oxygen should be considered a drug
                                Tiberian Sun Retro
                                My Mod for Tiberian Sun Webmaster of
                                http://www.tiberiumsun.com

                                Comment

                                Working...
                                X