Apolyton Archive  |  Preserved copy of the Apolyton Civilization Site and its forums as they stood in September 2005. Read-only; nothing here can be posted to or replied to.  |  Forum index |  About this archive |  The 1998–2001 UBB forums
Today on Apolyton WARDELL INTERVIEW PROMO A.C.S. HISTORY CHAPTER 4 GET CIV4 /w FREE PLUS! A.C.S. PHOTO GALLERY GET A.O.M. V1.1
Apolyton Civilization Forums
main| civ2| civ3| civ4| smac| ctp2| ron| moo3| galciv| galciv2| alt| about|
ApolytonPLUS | register | search | faq | new posts | pm (-/-) | upload | members
hall of fame new! | civgroups | civgroups news | interviews | the column | radio | chat | directory | news | store | PLUS
Apolyton Civilization Forums : Powered by vBulletin version 2.0.3 Apolyton Civilization Forums > Call To Power II > CtP2-Source Code Project > GENERAL: For Laughs
Show a Printable Version | Email This Page to Someone! | Receive updates to this thread | Report this to Apolyton news!
CivGroups
CTP2 Source Code Project (59): Not a Member - Join

bottom of page
  
Author
Thread    < Last Thread     Next Thread > Post New Thread     Post A Reply
ahenobarb is offline ahenobarb
Prince

Nov 2001
time: 05:31
  Old Post 10-11-2003 23:41
Edit/Delete Message Reply w/Quote
#1 Report this post to a moderator
GENERAL: For Laughs Get a bigger avatar today!

Found these while looking through the code and just had to share:

Happy.cpp

code:
void Happy::SetFullHappinessTurns(sint32 turns) { m_fullHappinessTurns = turns; m_happiness = 100; m_tracker->ClearEntries(HAPPY_REASON_SMOKING_CRACK, HAPPY_REASON_MAX); }


in armydata.cpp
code:
BOOL g_smokingCrack = TRUE;



centrifuge is offline centrifuge
Prince
USA
Apr 2002
time: 22:31
  Old Post 10-11-2003 23:50
Edit/Delete Message Reply w/Quote
#2 Report this post to a moderator
Got spare money?

NelsonAndBronte is offline NelsonAndBronte
Settler

Nov 2003
time: 05:31
  Old Post 10-11-2003 23:58
Edit/Delete Message Reply w/Quote
#3 Report this post to a moderator
Support Apolyton, pre-order Civilization IV

In fscompete.cpp

code:
attack_the_bastard = new GoalAttack(ai, him, pos);

Keygen is offline Keygen
Emperor
Athens, Hellas
Jan 2000
time: 07:31
  Old Post 11-11-2003 01:26 Visit Keygen's homepage!
Edit/Delete Message Reply w/Quote
#4 Report this post to a moderator
Support Apolyton buy from Amazon



This looks like Winnie's variable naming style

The Big Mc is offline The Big Mc
King
Of the universe / England
Oct 2001
time: 05:31
  Old Post 11-11-2003 02:37 Visit The Big Mc's homepage!
Edit/Delete Message Reply w/Quote
#5 Report this post to a moderator
Support Apolyton, buy Civilization 2

what do activision pay there programmes

on second thought probably peanuts

The Big Mc is offline The Big Mc
King
Of the universe / England
Oct 2001
time: 05:31
  Old Post 11-11-2003 02:37 Visit The Big Mc's homepage!
Edit/Delete Message Reply w/Quote
#6 Report this post to a moderator
Support Apolyton buy from Amazon

Why the hell did this post three times

The Big Mc is offline The Big Mc
King
Of the universe / England
Oct 2001
time: 05:31
  Old Post 11-11-2003 02:37 Visit The Big Mc's homepage!
Edit/Delete Message Reply w/Quote
#7 Report this post to a moderator
Support Apolyton or Terrorists Win

:dp

Asmodean is offline Asmodean
King
Aarhus, Denmark
Aug 1999
time: 06:31
  Old Post 12-11-2003 03:04 Visit Asmodean's homepage!
Edit/Delete Message Reply w/Quote
#8 Report this post to a moderator
Inflate your Upload Space

Yeah...this has st_swithin written all over it

Asmodean

child of Thor is offline child of Thor
Emperor
UK
Jan 2002
time: 05:31
  Old Post 12-11-2003 15:25
Edit/Delete Message Reply w/Quote
#9 Report this post to a moderator
Get a bigger avatar today!

quote:
Originally posted by The Big Mc
what do activision pay there programmes

on second thought probably peanuts


Obviously too much if they can afford to smoke crack?
Drugs are Bad - especially beer

But good to see the team were keeping their spirits up in those dark times - i'm sure a few more gems will be unearthed for our asmusement

The Big Mc is offline The Big Mc
King
Of the universe / England
Oct 2001
time: 05:31
  Old Post 12-11-2003 15:41 Visit The Big Mc's homepage!
Edit/Delete Message Reply w/Quote
#10 Report this post to a moderator
Support Apolyton, buy Civilization III: Complete

quote:
Originally posted by child of Thor


Drugs are Bad - especially beer



beer is good beeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeer

emmm beeeeeeeeeeeeeeeeer

uppi is offline uppi
Settler

Oct 2003
time: 05:31
  Old Post 12-11-2003 22:28
Edit/Delete Message Reply w/Quote
#11 Report this post to a moderator
Support Apolyton

in ui/interface/helptile.h

code:
#ifndef THIS_IS_MY_CONSTANT_SO_YOU_BETTER_NOT_USE_IT #define THIS_IS_MY_CONSTANT_SO_YOU_BETTER_NOT_USE_IT


I guess they had _some_ problems with the naming of their constants...

The Big Mc is offline The Big Mc
King
Of the universe / England
Oct 2001
time: 05:31
  Old Post 23-11-2003 17:27 Visit The Big Mc's homepage!
Edit/Delete Message Reply w/Quote
#12 Report this post to a moderator
Browse Apolyton AD-FREE

code:
if(!city.GetData()->GetCityData()->CapturedThisTurn()) { if(g_network.IsClient()) { g_network.RequestResync(RESYNC_PROBABLE_CHEATER); } return SFN_ERROR_OK; }


Charming

Martin Gühmann is offline Martin Gühmann
Emperor
Berlin, Germany
Mar 2001
time: 06:31
Post  Old Post 23-11-2003 23:09 Visit Martin Gühmann's homepage!
Edit/Delete Message Reply w/Quote
#13 Report this post to a moderator
Support Apolyton, buy Alpha Centauri

quote:
Originally posted by The Big Mc
code:
if(!city.GetData()->GetCityData()->CapturedThisTurn()) { if(g_network.IsClient()) { g_network.RequestResync(RESYNC_PROBABLE_CHEATER); } return SFN_ERROR_OK; }


Charming


From where did you get it, Big MC? Looks like here is the reason why my City Capture options doesn't work in MP.

-Martin

Peter Triggs is offline Peter Triggs
Prince
Gone Fishin, Canada
Jan 2000
time: 05:31
  Old Post 23-11-2003 23:25
Edit/Delete Message Reply w/Quote
#14 Report this post to a moderator
Enter the AD-FREE zone

Martin,

It's in slicfunc.cpp:

code:
SFN_ERROR Slic_DoFreeSlaves::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(!city.GetData()->GetCityData()->CapturedThisTurn()) { if(g_network.IsClient()) { g_network.RequestResync(RESYNC_PROBABLE_CHEATER); } return SFN_ERROR_OK; } if(g_network.IsClient()) { g_network.SendAction(new NetAction(NET_ACTION_FREE_SLAVES, city.m_id)); } city.FreeSlaves(); return SFN_ERROR_OK; }


I noticed it yesterday and was going to suggest that either you or JohnBTW might want to modify it so that slaves could be freed not just on the turn that the city is captured. I couldn't find any other occurence of 'RESYNC_PROBABLE_CHEATER' in a .cpp file, but it sounds like it was intended to be some kind of defense against multiplayer cheating.

Martin Gühmann is offline Martin Gühmann
Emperor
Berlin, Germany
Mar 2001
time: 06:31
Post  Old Post 23-11-2003 23:46 Visit Martin Gühmann's homepage!
Edit/Delete Message Reply w/Quote
#15 Report this post to a moderator
Browse Apolyton AD-FREE

Yes it is the only occurence in a *.cpp file, for changing it I would like to keep the current function, when there are zero arguments. If there is one argument and it is a city the slaves should be freed.

And Peter why don't you play with the slic functions on your own then you might find out some usefull stuff. To alter this slic function you can basicly find everything you need in that file, just check the other functions.

-Martin

Peter Triggs is offline Peter Triggs
Prince
Gone Fishin, Canada
Jan 2000
time: 05:31
  Old Post 24-11-2003 00:05
Edit/Delete Message Reply w/Quote
#16 Report this post to a moderator
Increase Your PM Length

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.

The Big Mc is offline The Big Mc
King
Of the universe / England
Oct 2001
time: 05:31
  Old Post 24-11-2003 01:22 Visit The Big Mc's homepage!
Edit/Delete Message Reply w/Quote
#17 Report this post to a moderator
Support Apolyton buy from Amazon

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

i did it this afternoon before the post

Martin Gühmann is offline Martin Gühmann
Emperor
Berlin, Germany
Mar 2001
time: 06:31
Post  Old Post 24-11-2003 21:17 Visit Martin Gühmann's homepage!
Edit/Delete Message Reply w/Quote
#18 Report this post to a moderator
Suffering from ads?

quote:
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

The Big Mc is offline The Big Mc
King
Of the universe / England
Oct 2001
time: 05:31
  Old Post 25-11-2003 02:05 Visit The Big Mc's homepage!
Edit/Delete Message Reply w/Quote
#19 Report this post to a moderator
Put an end to popups!

PHP:

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_SLAVES, city.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

Attachment: slicfunc.zip
This has been downloaded 2 time(s).

closms is offline closms
Settler

Nov 2003
time: 22:31
  Old Post 28-11-2003 02:45 Visit closms's homepage!
Edit/Delete Message Reply w/Quote
#20 Report this post to a moderator
Browse Apolyton AD-FREE

MapPoint ISuck = point;

Martin Gühmann is offline Martin Gühmann
Emperor
Berlin, Germany
Mar 2001
time: 06:31
Talking  Old Post 21-08-2004 01:12 Visit Martin Gühmann's homepage!
Edit/Delete Message Reply w/Quote
#21 Report this post to a moderator
Increase Your PM Length

Another one from CityData.cpp:

code:
void CityData::AddEndGameObject(sint32 type) { bool wtf = false; Assert(wtf); }


-Martin

child of Thor is offline child of Thor
Emperor
UK
Jan 2002
time: 05:31
  Old Post 21-08-2004 01:29
Edit/Delete Message Reply w/Quote
#22 Report this post to a moderator
Support Apolyton

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

St.swithin must have been slowing down

Martin Gühmann is offline Martin Gühmann
Emperor
Berlin, Germany
Mar 2001
time: 06:31
Post  Old Post 10-09-2004 20:22 Visit Martin Gühmann's homepage!
Edit/Delete Message Reply w/Quote
#23 Report this post to a moderator
Avatar Enlargement: We've got the solution

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

child of Thor is offline child of Thor
Emperor
UK
Jan 2002
time: 05:31
  Old Post 10-09-2004 22:48
Edit/Delete Message Reply w/Quote
#24 Report this post to a moderator
Support Apolyton, buy Galactic Civilizations



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!

Martin Gühmann is offline Martin Gühmann
Emperor
Berlin, Germany
Mar 2001
time: 06:31
Post  Old Post 11-09-2004 22:45 Visit Martin Gühmann's homepage!
Edit/Delete Message Reply w/Quote
#25 Report this post to a moderator
Support Apolyton, buy Civilization: The Boardgame

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

  < Last Thread     Next Thread > Post New Thread     Post A Reply
All times are GMT. The time now is 05:31.
Apolyton Time is 00:31.
    top of page
Rate This Thread:
Forum Jump:
Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is ON
vB code is ON
Smilies are ON
[IMG] code is ON
 




Contact Us - Apolyton Civilization Site - Support Us!

Building a better Apolyton through better information. Click here and take our poll!
Non-US visitors, click here!

Powered by: vBulletin Version 2.0.3
Copyright ©2000, 2001, Jelsoft Enterprises Limited.

Page generated in 0.0502 seconds (92.78% PHP - 7.22% MySQL) with 36 queries
Page Loading Time:

Support Apolyton: Amazon USA | Amazon UK | Amazon DE | Amazon FR |
Support Apolyton and get FREE PLUS, Buy from Chips&Bits: Galactic Civilizations | Galactic Civilizations: Deluxe Edition | Call to Power 2 | Civilization: The Boardgame | GURPS/ Alpha Centauri | Alpha Centauri | Civilization IV | Civilization III: Complete |


Front Page | Civilization IV | Civilization III | Civilization II | Call to Power II | Alpha Centauri | Master of Orion III
Rise of Nations | Galactic Civilizations | Galactic Civilizations II | Misc
Alt.Civs | Civ I | C:CtP I | About | News | Directory | Apolyton Store | Forums | Chat | Columns | Interviews | Newsletter
Scenario League | CSC | Clash of Civs | Spanish Site | CtP Maps | Cradle of Civ | WesW's Ctp1/2 Site | Civ3 Haven

apolyton.net | apolyton.com | civilization2.net | civilization3.net | civilization4.net | civilizationiv.info | calltopower.net | galciv.net | galciv2.net | moo3.net