Author Topic: Lua scenarios?  (Read 1384 times)

daniel.santos

  • Guest
Lua scenarios?
« on: 19 September 2009, 00:00:33 »
I'm not seeing the Lua-based scenarios anywhere in the sourceforge repository.  This is one of the problems with not propagating the data directory into each tag, branch, etc.  While I realize that it's a pain to download it, if you use "svn switch" to switch between branches & such, it wont have to re-download them.  Maybe there's something else we can do to mitigate this, but not having the data directory in the tree when it is changing and will change on separate tags & branches isn't sane.

So for the Lua stuff, do I need to install Glest 3.2.2 and use that stuff?  Also, we have modifications to the original data, so is there something worked up already to merge those (like for the "load game" button in the main menu and such)?  Thanks.

silnarm

  • Local Moderator
  • Behemoth
  • ********
  • Posts: 1,373
    • View Profile
Re: Lua scenarios?
« Reply #1 on: 19 September 2009, 00:14:38 »
You're right... we've even changed the location they are expected in... so we do indeed need our data not just on sourceforge, but properly under revision control...

On the theme, it would be nice to have a 'gae_techs' too, and have an xml only magitech with patrol/gaurd/etc commands...
Glest Advanced Engine - Code Monkey

Timeline | Downloads

hailstone

  • Local Moderator
  • Battle Machine
  • ********
  • Posts: 1,568
    • View Profile
Re: Lua scenarios?
« Reply #2 on: 19 September 2009, 02:59:58 »
What if the data is kept up-to-date with trunk and then every time a tag is created you copy the data into the tag? It still leaves manual modification of branch data changes though. But how often will branches be breaking compatibility?

Would a setup like this be better?
tags/0.2.12
tags/0.3.1
glestae_0.2.x/data
glestae_0.2.x/trunk
glestae_0.2.x/branches
glestae_0.3.x/data
glestae_0.3.x/trunk
glestae_0.3.x/branches
« Last Edit: 19 September 2009, 03:18:59 by hailstone »
Glest Advanced Engine - Admin/Programmer
https://sourceforge.net/projects/glestae/

daniel.santos

  • Guest
Re: Lua scenarios?
« Reply #3 on: 19 September 2009, 04:36:20 »
You're right... we've even changed the location they are expected in... so we do indeed need our data not just on sourceforge, but properly under revision control...

On the theme, it would be nice to have a 'gae_techs' too, and have an xml only magitech with patrol/gaurd/etc commands...
Yea, as a matter of fact, I believe that I had already begun modifying the magitech faction in the tree on codemonger.org (I'll have to re-check it) just for that purpose.  In fact, it was then that I realized that the "auto-return" functionality was a bit of a cheat because it bypassed the "Guard" command that is only supposed to be available after you have researched "training field" or some such.  The main aim when I made the auto-return functionality was really to not have them automatically run to the location where they 1st saw an enemy and auto-attacked it, this was very messy.  The correct behavior is for them to stop in their tracks after having auto-attacked, unless they are executing some guard or patrol command.

Anyway, that's OT, sorry. :)  There were also changes to the language files and something else, I forget what :)

What if the data is kept up-to-date with trunk and then every time a tag is created you copy the data into the tag? It still leaves manual modification of branch data changes though. But how often will branches be breaking compatibility?

Would a setup like this be better?

Actually, I think this is something that needs to be done completely accurately. There is a very specific purpose for trunk, branches and tags that subversion defines.  It might be a good idea to read up on Subversion Best Practices.  Also, a lot of the bandwidth problems can be mitigated by using "svn switch" to switch your working set between branches.  This will only download the files that are different and all of the big data files that haven't changed will not get downloaded again.

hailstone

  • Local Moderator
  • Battle Machine
  • ********
  • Posts: 1,568
    • View Profile
Re: Lua scenarios?
« Reply #4 on: 19 September 2009, 06:13:52 »
OK. That makes sense. I'll just need to be more careful when I checkout branches.
Glest Advanced Engine - Admin/Programmer
https://sourceforge.net/projects/glestae/