A Question about creating mission maps

5 replies [Last post]
FadeONE
User offline. Last seen 5 years 32 weeks ago. Offline
Joined: 2010-06-02
Posts: 26

I've been trying to create a mission map to play with my friends but i dont really know how to do it.
I want to create a "Race to the top" mission map but when i try to edit one of the LUA files in the original mission maps ( Knockball \ Basketball ) it just reset the weapon set and the game mods like low gravity, laser sight, etc...

Could anyone help me here?

BTW Im sorry for my poor English!

~Meir

Smaxx
Smaxx's picture
User offline. Last seen 13 years 31 weeks ago. Offline
Joined: 2009-04-29
Posts: 391

Hm ... wrote a longer response but it was lost somehow ... Sad Smiley

Short version:
- If you add a script and it seems to be ignored (default weapons and game modes, no messages etc.) it's very likely some script error kept it from running. Right now there's no message appearing ingame but you should look inside your "debug0.txt" for lines with "Lua:" inside. That way you should be able to notice if there has been some problem running the script.

FadeONE
User offline. Last seen 5 years 32 weeks ago. Offline
Joined: 2010-06-02
Posts: 26

Ah I see... So is there a way to make a code myself without editing an existing code?
I mean like a compiler or something so i could check what is wrong..?

~Meir

Thomas
Thomas's picture
User offline. Last seen 11 years 44 weeks ago. Offline
Joined: 2009-02-06
Posts: 233

if its just a race from startpoint to finish take the script from one of these maps as basic:
http://www.hedgewars.org/node/2089

please add your xfire accountname here:
http://www.hedgewars.org/node/1977

-jay-
-jay-'s picture
User offline. Last seen 4 years 23 weeks ago. Offline
Joined: 2009-05-29
Posts: 36

FadeONE allegedly wrote:

Ah I see... So is there a way to make a code myself without editing an existing code?
I mean like a compiler or something so i could check what is wrong..?

If you mean coding lua maps then you don't need to compile anything.
You can add maps and lua scripts to your hedgewars installation, just look at the folder/file structure of Hedgewars' Data->Maps and add what you want to add in a similar manner.

FadeONE
User offline. Last seen 5 years 32 weeks ago. Offline
Joined: 2010-06-02
Posts: 26

Thanks Thomas ill check this now...
and jay thats what im trying but its not working well :S

~Meir

User login

Copyright © 2004-2024 Hedgewars Project. All rights reserved. [ contact ]