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 > Alternative Civs > Clash of Civilizations > Little problems
Show a Printable Version | Email This Page to Someone! | Receive updates to this thread | Report this to Apolyton news!
04.Sep: `FC` 2.0.5 COMPLETED AND RELEASED
27.Jul: `FC` 2.0.4 COMPLETED AND RELEASED
16.Jul: `FC` 2.0.3 COMPLETED AND RELEASED

bottom of page
  
Author
Thread    < Last Thread     Next Thread > Post New Thread     Post A Reply
LDiCesare is offline LDiCesare
King
La Ferté sous Jouarre France
Jan 2001
time: 05:27
  Old Post 02-05-2003 17:16
Edit/Delete Message Reply w/Quote
#1 Report this post to a moderator
Little problems Support Apolyton, buy Civilization 2

Just letting know I have hardware problems, so I have trouble connecting to the web and getting e-mail access.
I am also running into memory problems with the game (some OutOfMemoryError showing up from time to time).
I don't know what causes that, as it can come from anywhere. It is more common if I don't have the map hidden, so painting the map eats memory, but I don't know the exact cause. Hopefully, it is something I added recently and I'll find out soon. Anyway, this allowed me to find a weird bug: The xml files, when they meet an unknown tag, bypass it, but the inner tags are processed. Thus, <unknown><civilisation> stuff </civilisation></unknown> will parse stuff as if it was a root tag. This means the (disabled) diplomacy tags can have an effect on the game. Here, the effect was to create additional ais for nothing.

Mark_Everson is offline Mark_Everson
Clash of Civilizations Project Lead
Canton, MI
Jan 1970
time: 00:27
  Old Post 03-05-2003 17:17 Visit Mark_Everson's homepage!
Edit/Delete Message Reply w/Quote
#2 Report this post to a moderator
Support Apolyton, buy Galactic Civilizations: Deluxe Edition

Hi Laurent:

Sorry to hear about the problems, but its sure good you found that bug! Can you fix it so the parser won't go inside an unrecognized tag? I think that's best, and it seems it could be done easily.

Good Luck on your bug finding and fixing!

LDiCesare is offline LDiCesare
King
La Ferté sous Jouarre France
Jan 2001
time: 05:27
  Old Post 04-05-2003 00:41
Edit/Delete Message Reply w/Quote
#3 Report this post to a moderator
Support Apolyton, buy Civilization III: Complete

I wanted to do it, but it's a bit harder than expected. I'll do it when/if I get the (other) memory problems fixed.

LDiCesare is offline LDiCesare
King
La Ferté sous Jouarre France
Jan 2001
time: 05:27
  Old Post 09-05-2003 22:06
Edit/Delete Message Reply w/Quote
#4 Report this post to a moderator
Support Apolyton buy from Amazon

All is fixed. I found out what I did wrong with the new ai (did things even when the 'old' code was supposed to run), and corrected the parser.

Mark_Everson is offline Mark_Everson
Clash of Civilizations Project Lead
Canton, MI
Jan 1970
time: 00:27
  Old Post 11-05-2003 02:23 Visit Mark_Everson's homepage!
Edit/Delete Message Reply w/Quote
#5 Report this post to a moderator
Support Apolyton, buy Civilization III: Complete

Sounds great Laurent! Any guess on when we can see the AI doing something bright? Or at least non-dumb. . .

LDiCesare is offline LDiCesare
King
La Ferté sous Jouarre France
Jan 2001
time: 05:27
  Old Post 11-05-2003 05:23
Edit/Delete Message Reply w/Quote
#6 Report this post to a moderator
Remove this text

Well, the ai doesn't do anything dumb. The problem is it doesn't do much right now. It just behaves like the old one, but a bit more cleverly (won't go on a silly path if it can see it beforehand), and eats more memory. I confess spending lots of time playing galciv which hinders my coding a bit, but gives some ideas. Typically, galciv's ai is not so good military-wise (tactically), but good on economy, expansion, tech and diplomacy. These areas are not really handled by Clash ai now. I focus on Carthago scenario to tune the beast, so I will have to teach the ai to change build orders if it sees a wall for instance. That is not straightforward, and I want to have it behave withut eating too many resources before I go into that. Performance tuning is a bit long and painful, particularly since this happens in separate threads. I suppose by now you understood I wouldn't give a date . I can send you the code whenever you like if you want to test what it's like. Otherwise, I keep tuning it and will only send when I feel it acts better than it used to?

Gary Thomas is offline Gary Thomas
Prince
New Zealand
Mar 2001
time: 17:27
  Old Post 05-06-2003 07:11
Edit/Delete Message Reply w/Quote
#7 Report this post to a moderator
Support Apolyton, buy Galactic Civilizations

What was the problem with the parser, Laurent?

I don't have your email address any more, so if you send it to me I would be grateful.

Cheers

LDiCesare is offline LDiCesare
King
La Ferté sous Jouarre France
Jan 2001
time: 05:27
  Old Post 06-06-2003 22:00
Edit/Delete Message Reply w/Quote
#8 Report this post to a moderator
Support Apolyton, buy GURPS/ Alpha Centauri

Hi Gary, my e-mail is laurent.di.cesare@wanadoo.fr.
The problem was that if you meet a tag that is unrecognized, the current object in the stack remains the same. Say you have:
<root>
  <correct></correct>
  <unknown> <correct></correct> </unknown>
</root>
In root there exists a setcorrect() method but no setunknown() method. What happens is the unknown tag is skipped, and root remains the current level of the stack. When the parser meets correct tag, it interprets it as root.setcorrect, instead of unknown.setcorrect. We had a civ tag at root level, and then a diplomaticstatus tag that was not yet implemented but had an inner civ tag. The outer tag was skipped, and the inner civ tag created an additional civ.

Gary Thomas is offline Gary Thomas
Prince
New Zealand
Mar 2001
time: 17:27
  Old Post 09-06-2003 09:20
Edit/Delete Message Reply w/Quote
#9 Report this post to a moderator
Avatar Enlargement: We've got the solution

Ouch - obviously I didn't think of that one!

Cheers

  < Last Thread     Next Thread > Post New Thread     Post A Reply
All times are GMT. The time now is 05:27.
Apolyton Time is 00:27.
    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.0309 seconds (86.49% PHP - 13.51% MySQL) with 30 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