Menu

#36 Getting stratagus map editor to work

open
nobody
None
5
2012-12-31
2008-03-01
No

Hi,

I downloaded the windows version of Stratagus and was able to get it running with warcraft 2 data.

However the map editor is not visible for some reason. I have attached a pic to show what it looks like.

I tried fiddling about with menus.lua in the wargus scripts directory, but realized that the config file did not load menus.lua at all.

I added load(menus.lua) to the script and then stratagus gave me an error
[string "scripts/keystrokes.lua"]:36: attempt to call global `ResetKeystrokeHelp' (a nil value)2
stack traceback:
[C]: in function `ResetKeystrokeHelp'
[string "scripts/keystrokes.lua"]:36: in main chunk
[C]: in function `Load'
[string "scripts/menus.lua"]:34: in main chunk
[C]: in function `Load'
[string "scripts/stratagus.lua"]:332: in main chunk

I next tried downloading stratagus 2.2.4 and installing under VC++.
This did build an exe but I couldn't see any difference except that it was 4.2 mb while the windows direct one was 1.2 mb or so.

Furthermore, if I try to use the stratagus with other data sets, I keep getting lua script errors like 'attempt to call global ...' How can I override this.

Actually I am doing a project on AI in RTS games and I want to use stratagus for this. How do I set up playing against a custom AI? Can I do it without the map editor?

Discussion

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.