Random lua/GC questions
Posted: Sat Jan 24, 2015 9:48 am
Hi,
i just thought it is time to start a new big project i have no knowledge about
So i want to make a new custom GC, but it looks like it is not working.
Actually i just took the example codes, changed a little bit here and a little bit there, but it never worked. As you can see in the error log the script doesn't know that i pressed the right button. But i pressed on the button that says Republic Commando. I hope someone of you can help me.
An other question is there a more detailed tutorial on how to add maps/planets to the gc, and how to set up the mission you are playing on these planets? How to set up own fleet icons, how to change the units you can buy, the bonus things,...??
custom_gc_5.lua
error log:
==EDIT==
just an idea i had
print(tag)
print(gcTag)
result:
nil
RC
so it looks like the tag isn't setup right for the button. Any Idea why??
==EDIT2==
An other question: How can i check if there are special files somewhere in the addon directory??
(I saw that dt is looking for ETR and made an output like i found ... so i add bla bla bla.)
I'd like to search for my custom era mod before i add the button to the gc list. So is there a function, how to check this??
i just thought it is time to start a new big project i have no knowledge about
So i want to make a new custom GC, but it looks like it is not working.
Actually i just took the example codes, changed a little bit here and a little bit there, but it never worked. As you can see in the error log the script doesn't know that i pressed the right button. But i pressed on the button that says Republic Commando. I hope someone of you can help me.
An other question is there a more detailed tutorial on how to add maps/planets to the gc, and how to set up the mission you are playing on these planets? How to set up own fleet icons, how to change the units you can buy, the bonus things,...??
custom_gc_5.lua
Hidden/Spoiler:
Hidden/Spoiler:
just an idea i had
print(tag)
print(gcTag)
result:
nil
RC
so it looks like the tag isn't setup right for the button. Any Idea why??
==EDIT2==
An other question: How can i check if there are special files somewhere in the addon directory??
(I saw that dt is looking for ETR and made an output like i found ... so i add bla bla bla.)
I'd like to search for my custom era mod before i add the button to the gc list. So is there a function, how to check this??