google-code-export / bwapi

Automatically exported from code.google.com/p/bwapi
0 stars 0 forks source link

Wont load map xml file #15

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Revision: 188

I wanted to test whether the API is able to load the ICCup Python
1.3.scx.xml file, so I started a match on the exact same map.

The following logline appears in the log:
Exception in AI::onStart: Unable to load data file bwapi-data\\maps\.xml

Possible Explanation: Maybe I have another version of python 1.3, so that
it isnt able to match it to the xml -> can you send me your version of
python if you suspect that that might be the cause?

Original issue reported on code.google.com by quietdeath@gmail.com on 21 May 2008 at 8:54

GoogleCodeExporter commented 9 years ago
Well the Exception message should contain the map name, like this one I got 
when I
started another map, so the 
Exception in AI::onStart: Unable to load data file bwapi-data\\maps\ICCup 
Faoi.scx.xml

Original comment by kovarex on 21 May 2008 at 9:32

GoogleCodeExporter commented 9 years ago
Well, there was one problem with the double slash, the property parser
(bwapi-data\\map ...)
I corrected the property parser so it is only one slash, I don't know if it 
could be
the reason of your wrong exception message, but it more likely look, that the
get-map-name function doesn't work for you, do you have the correct map name in
buildability.txt file in bw-api dat?

Original comment by kovarex on 21 May 2008 at 9:33

GoogleCodeExporter commented 9 years ago
Map file: 0

There isnt a map title either

Original comment by quietdeath@gmail.com on 21 May 2008 at 9:46

GoogleCodeExporter commented 9 years ago
Well, strange, it works for me, but I must admit I just searched the unit name
offset, so I't can't be guaranteed it is correct
1) what type of game as that? (Sinlge/lan/battle net)
2) Provide me the full (absolute) path of the map you should have there
3) Are you familiar with ollydbg, or other debugging tool?

Original comment by kovarex on 21 May 2008 at 9:49

GoogleCodeExporter commented 9 years ago
1) Single & LAN tested
2) C:\Spiele\Starcraft\maps\aitest\ICCup Python 1.3.scx
the logline doesnt always is '...\.scx.xml' or '...\0.scx.xml' no matter which 
map I try
3) I know what ollydbg does, but I'm not familiar with its usage nor with 
assembler
(only had basic assembler in school)

Original comment by quietdeath@gmail.com on 21 May 2008 at 9:53

GoogleCodeExporter commented 9 years ago
If you want me to find the offset for the mapname I can do it if you help me 
with
ollydbg -> do you have icq/skype etc? (my icq 166788349)

Original comment by quietdeath@gmail.com on 21 May 2008 at 9:55

GoogleCodeExporter commented 9 years ago
found this line
Text strings referenced in StarCraft, item 536
  Address = 0045A2D5
  Command = PUSH OFFSET StarCraft.0057FD24
  Comments = ASCII "C:\Spiele\Starcraft\maps\(2)Bottleneck.scm"

Original comment by quietdeath@gmail.com on 21 May 2008 at 10:08

GoogleCodeExporter commented 9 years ago
Seems to be solved (quickdeath verified it is working for him now, and it works 
also
for me)

Original comment by kovarex on 22 May 2008 at 1:50