View topic - Lua gadget example: Turn based play



All times are UTC + 1 hour


Post new topic Reply to topic  [ 18 posts ] 
Author Message
PostPosted: 05 Feb 2009, 01:46 
Balanced Annihilation Maintainer
User avatar

Joined: 10 Dec 2006, 18:46
I had an idea of how to implement turn based play using a mix of Wait commands and the AllowCommand function, here's the results:

Download: http://pw3n.net/gadgets/turn_based.lua

It does seem to work (aside from small problems like landing aircraft in the orders phase and losing the ability to control firestate) if you drop it into any mod.

There's also a table which can be used to end the orders phase early, if finishedOrders[teamId] is 'true' for every team then the orders phase will end, I imagine this would be best done with a GUI button.

I'm not too keen on taking this much further myself but wanted to see if it would work and am releasing it for modders to have a go with and hopefully improve.


Top
 Offline Profile  
 
PostPosted: 05 Feb 2009, 09:47 
Balanced Annihilation Maintainer
User avatar

Joined: 10 Dec 2006, 18:46
Todo list:
- Freeze resource gain/loss during order mode.
- Freeze reload times during order mode.
- Freeze unit movement during order mode.
- Hide Firestate and add a fake Firestate option that can be used to toggle how the unit works in action mode.
- Add a 'DONE' button to unsynced so teams can declare their ordermode finished (and set finishedOrders to true).


Top
 Offline Profile  
 
PostPosted: 05 Feb 2009, 11:44 
User avatar

Joined: 28 Jul 2008, 05:51
Location: Australia
I'm very interested in this. It has potential.

I will finish it off and make it an alternate game mode for Metalstorm. Metalstorm has a strong focus on strategic planning so this is a perfect compliment to the mod. I'll probably implement it as a limited "pause" resource that players can activate a limited number of times.

Thanks for the release. You rock!


Top
 Offline Profile  
 
PostPosted: 05 Feb 2009, 12:13 
Balanced Annihilation Maintainer
User avatar

Joined: 10 Dec 2006, 18:46
Thinking about it, if you were able to send a pause from Synced and prevent any players from unpausing that would be a lot better than using Wait, but I don't believe you can currently.


Top
 Offline Profile  
 
PostPosted: 05 Feb 2009, 12:26 
Spring Developer
User avatar

Joined: 28 Jun 2007, 06:30
... deploy gadget?


Top
 Offline Profile  
 
PostPosted: 05 Feb 2009, 12:53 
Balanced Annihilation Maintainer
User avatar

Joined: 10 Dec 2006, 18:46
Oh yes, that worked didn't it..

The gadget in this post was a quick job I really just wanted to start a discussion with the example.

That'll be something to look into.


Top
 Offline Profile  
 
PostPosted: 05 Feb 2009, 13:41 
Moderator

Joined: 22 Aug 2006, 15:19
planes landing and stuff could be taken care of with movectrl, right?


Top
 Offline Profile  
 
PostPosted: 05 Feb 2009, 14:25 

Joined: 22 Jan 2009, 19:25
Hi,

nice idea.
But i have the best (and most realistic)turn based Wargame (ATM WW2 only)already here
and have tryed Spring because i searched a good RTS .......
[and spring is a realy good RTS ;) ]
So for me -> thanks, but dont need it.
Maybe other like it - best wishes for it ;)

R-TEAM


Top
 Offline Profile  
 
PostPosted: 05 Feb 2009, 14:27 
BT: Legacy & Spring 1944 Developer

Joined: 21 Sep 2004, 07:25
Location: Needlessly hostile.
Despite the fact that I absolutely abhor turn-based games, this seems like a very cool idea, for a computer-game version of turn-based TT games like Warhammer, Warmachine, even *shudder* D&D.


Top
 Offline Profile  
 
PostPosted: 05 Feb 2009, 15:05 
Moderator

Joined: 22 Aug 2006, 15:19
gimme nethack


Top
 Offline Profile  
 
PostPosted: 06 Feb 2009, 16:26 
User avatar

Joined: 30 May 2007, 09:45
Location: Latvia, Riga
...M.A.X. 3D...


Top
 Offline Profile  
 
PostPosted: 27 Jul 2009, 14:13 

Joined: 27 Jul 2009, 14:09
The above link seems to be broken. Any alternative location? tia


ps: M.A.X. was G.R.E.A.T. but way too unstable :(


Top
 Offline Profile  
 
PostPosted: 28 Jul 2009, 11:57 
User avatar

Joined: 30 May 2007, 09:45
Location: Latvia, Riga
Avatar wrote:
ps: M.A.X. was G.R.E.A.T. but way too unstable :(

That's for sure...


Top
 Offline Profile  
 
PostPosted: 29 Jul 2009, 07:02 
Spring 1944 Developer
User avatar

Joined: 11 Oct 2005, 06:18
Location: Ukraine
Not that unstable with 1.04 patch btw. Too bad MAX 2 was a whole different game.


Top
 Offline Profile  
 
PostPosted: 31 Jul 2009, 22:46 
Modeler
User avatar

Joined: 28 Apr 2005, 20:07
Location: Next to the girl with kaleidascope eyes
I still say you'd be better off doing this by actually pausing the game during the orders phase.


Top
 Offline Profile  
 
PostPosted: 01 Aug 2009, 12:11 

Joined: 27 Jul 2009, 14:09
btw: there is a M.A.X. remake in development -> http://www.maxr.org

Turn based play would be great in combination with buying/deploying units instead of building an infrastructure for production and with objectives that the players have to take. Spring 1944 has both options (buy/deploy and objectives).

Would this be possible for other mods (with LUA)? (i really like EE and NOTA).
I┬┤m not into programming and LUA, so i can┬┤t imagine if this is possible and how long it would take to do it...


Top
 Offline Profile  
 
PostPosted: 23 Sep 2009, 19:53 

Joined: 23 Sep 2009, 19:22
Avatar wrote:
The above link seems to be broken. Any alternative location? tia


It's still broken.


Top
 Offline Profile  
 
PostPosted: 24 Sep 2009, 20:51 
Blood & Steel Developer
User avatar

Joined: 25 Aug 2004, 12:31
Location: Has not played *a in years.
can you pause via lua and have a sync timer to unpause?


Top
 Offline Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 18 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group

Site layout created by Roflcopter et al.