My own missions / Basics of LUA scripting
Posted: Wed Mar 26, 2014 9:14 am
Hi guys,
as you can see I'm new here. First of all sorry for bad english maybe...
Iam learning the map.yaml Syntax and LUA to create my own camapaign of your brilliant remake of C&C Tiberian Dawn. I often read your explanations on your GitHub Website but its not up to date so Iam confused because I dont know which things i tried are wrong in my code. I often took the code from your expamles like gdi01,nod01... and so on but there are differences. I saw that implemented gdi01.lua and nod01.lua are not in the same folder anymore as described and as they shoud but scripting works, how could that be?
My plan was just to built step by step, so i could find yout which changes cause problems...
So I have a map which is called mission01 with map.yaml and with mission.lua. The problem that the map doesnt load is solved but now the problem is:
if buildings and infantry of GDI are destroyed or the nod rmbo dies, THE GAME PAUSES. Its not ending like your campaings or the multyplayer maps that there can switched the viewes of the players.
Nothing happens but the Game pauses, why is that happening?
This is the first thing i want to solve, that my map starts and ends correctly, can you help me? I tried different things but nothing helped and as long as there is no full documnettaion with examples that are up to date, i don't know where to ask else.
I hope you understand what i mean ;-) Thanks for help!
as you can see I'm new here. First of all sorry for bad english maybe...
Iam learning the map.yaml Syntax and LUA to create my own camapaign of your brilliant remake of C&C Tiberian Dawn. I often read your explanations on your GitHub Website but its not up to date so Iam confused because I dont know which things i tried are wrong in my code. I often took the code from your expamles like gdi01,nod01... and so on but there are differences. I saw that implemented gdi01.lua and nod01.lua are not in the same folder anymore as described and as they shoud but scripting works, how could that be?
My plan was just to built step by step, so i could find yout which changes cause problems...
So I have a map which is called mission01 with map.yaml and with mission.lua. The problem that the map doesnt load is solved but now the problem is:
if buildings and infantry of GDI are destroyed or the nod rmbo dies, THE GAME PAUSES. Its not ending like your campaings or the multyplayer maps that there can switched the viewes of the players.
Nothing happens but the Game pauses, why is that happening?
This is the first thing i want to solve, that my map starts and ends correctly, can you help me? I tried different things but nothing helped and as long as there is no full documnettaion with examples that are up to date, i don't know where to ask else.
I hope you understand what i mean ;-) Thanks for help!