Announcement

Collapse
No announcement yet.

GENERAL: For Laughs

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

  • #16
    I'm working on diplomacy. It's very 'challenging'. :sigh:

    I think I've found the place where AI-AI diplomacy gets 'shut down', but the system is very complicated and I'm still trying to figure out how it works.

    Comment


    • #17
      i have all ready worked out the code for a new function called free al slaves

      i did it this afternoon before the post
      "Every time I learn something new it pushes some old stuff out of my brain" Homer Jay Simpson
      The BIG MC making ctp2 a much unsafer place.
      Visit the big mc’s website

      Comment


      • #18
        Originally posted by The Big Mc
        i have all ready worked out the code for a new function called free al slaves

        i did it this afternoon before the post
        So and where is your code?

        But actual I prefer the concept of overloading.

        -Martin
        Civ2 military advisor: "No complaints, Sir!"

        Comment


        • #19
          PHP Code:
          SFN_ERROR Slic_FreeAllSlaves::Call(SlicArgList *args)
          {
              if (
          args->m_numArgs 0)
                  return 
          SFN_ERROR_NUM_ARGS;

              
          Unit city g_slicEngine->GetContext()->GetCity(0);

              if(!
          g_theUnitPool->IsValid(city)) {
                  return 
          SFN_ERROR_OK;
              }

              if(
          g_network.IsClient()) 
              {
                  
          g_network.SendAction(new NetAction(NET_ACTION_FREE_SLAVEScity.m_id));
              }

                  
          city.FreeSlaves();
              return 
          SFN_ERROR_OK;

          it compiles no errors but i haven’t got it to run in game yet

          i also add it as an attachment as part of the full files modified i copied onto the one you did for ctp 2 patch
          Attached Files
          "Every time I learn something new it pushes some old stuff out of my brain" Homer Jay Simpson
          The BIG MC making ctp2 a much unsafer place.
          Visit the big mc’s website

          Comment


          • #20
            MapPoint ISuck = point;

            Comment


            • #21
              Another one from CityData.cpp:

              Code:
              void CityData::AddEndGameObject(sint32 type)
              {
              	bool wtf = false;
              	Assert(wtf);
              }
              -Martin
              Civ2 military advisor: "No complaints, Sir!"

              Comment


              • #22
                Wow! nealry a whole year and thats all you could find!

                St.swithin must have been slowing down
                'The very basis of the liberal idea – the belief of individual freedom is what causes the chaos' - William Kristol, son of the founder of neo-conservitivism, talking about neo-con ideology and its agenda for you.info here. prove me wrong.

                Bush's Republican=Neo-con for all intent and purpose. be afraid.

                Comment


                • #23
                  And another one at least one to smile.

                  Code:
                  #ifdef _DEBUG
                  	bool RICHARD_WANTS_TO_SEE_THIS_ASSERT = (type > -1);
                  	Assert(RICHARD_WANTS_TO_SEE_THIS_ASSERT);
                  #endif
                  Looks like a problem with not popping up asserts maybe he should have compiled the game in debug mode.

                  -Martin
                  Civ2 military advisor: "No complaints, Sir!"

                  Comment


                  • #24


                    I can almost picture the scene:

                    Late at night with three empty coffee cups near at hand, bag of crisps, bits of paper and some big fat books about technical computer stuff.

                    And one annoying bit of code that isn't doing what its meant to do

                    oh the joys of being a programmer!
                    'The very basis of the liberal idea – the belief of individual freedom is what causes the chaos' - William Kristol, son of the founder of neo-conservitivism, talking about neo-con ideology and its agenda for you.info here. prove me wrong.

                    Bush's Republican=Neo-con for all intent and purpose. be afraid.

                    Comment


                    • #25
                      And another one this time from CivilisationDB.cpp:

                      Code:
                      #ifdef _DEBUG
                      	if(!(rand() % 10000)) {
                      		static saidItOnce = FALSE;
                      		if(!saidItOnce && strstr(g_theStringDB->GetNameStr(str_id), "WarMany")) {
                      			c3errors_ErrorDialog("Designer", "I don't like these civilization names");
                      			saidItOnce = TRUE;
                      		}
                      	}
                      #endif
                      -Martin
                      Civ2 military advisor: "No complaints, Sir!"

                      Comment

                      Working...
                      X