How to build something

Discuss the future of Warzone 2100 with us.
mitmat
New user
Posts: 2
Joined: 29 Sep 2009, 15:34

How to build something

Post by mitmat »

Hello,

I'm Phd Student and I work on Serious Games. My goal is to study if RTS could be interesting to teach computer programming. I developed a system call "Prog&Play" (http://www.irit.fr/ProgAndPlay/index_en.php) currently available with Spring engine and I want to implement it in WZ2100.
Then I downloaded source code but I don't understand which function use to order a droid to build a structure.
I suppose to use "droidStartBuild(DROID *psDroid);"
Then I deduct from exemple of code that to use this function, I must initialise psDroid->orderX, psDroid->orderY and psDroid->psTarStats.
I don't know how to initialize this last attribut (ie: psTarStats).

Thanks!
Last edited by mitmat on 17 Oct 2011, 12:19, edited 1 time in total.
Kamaze
Regular
Regular
Posts: 1017
Joined: 30 Jul 2006, 15:23

Re: How to build something

Post by Kamaze »

He wants to develop on the source code! :rolleyes:
Best place for this kind of questions is our irc channel. #warzone2100-dev @ freenode
Last edited by Zarel on 30 Sep 2009, 02:49, edited 1 time in total.
Reason: corrected IRC channel
We all have the same heaven, but not the same horizon.
cybersphinx
Inactive
Inactive
Posts: 1695
Joined: 01 Sep 2006, 19:17

Re: How to build something

Post by cybersphinx »

Or the mailing list.
User avatar
fmbailey
New user
Posts: 5
Joined: 30 Sep 2009, 04:49

Re: How to build something

Post by fmbailey »

As a PHD Student who I can only guess is working towards being a Programming Teacher I have to ask a few things out of curiosity. Is the main focus of your degree teaching or is it programming? If it's the latter then you're off to a good start.

But here's the part that's going to make a big difference
"My goal is to study if RTS could be interesting to teach computer programming."
. On what level of education do you wish to start out with this study? If you're starting off with beginning programmers then I can assure you a lot of the code will confuse them. Sure it'd be interesting and they might even get to play with the results but they need the basic fundamentals of actual programming first. This would be something more as a second year college level at best I think, especially if you intend on showing them aspects of multiplayer coding.
The Sisters of Bakery will serve you up a feast of the righteous! Your heresy will know defeat after you've eaten too much. Where are the Tau buns? Coming fresh out of the oven in a few minutes.
mitmat
New user
Posts: 2
Joined: 29 Sep 2009, 15:34

Re: How to build something

Post by mitmat »

I found the solution. I use "orderDroidStatsLoc" function and the "asStructureStats" array to specify which structure build.
fmbailey wrote:On what level of education do you wish to start out with this study?
We use it for beginning programmers but we don't put students in front of the code of Spring or Warzone2100. Students use an interface that abstract the game complexity and give them the minimum to get and command units. Currently, I work to include this interface in Warzone2100 and if it's work, probably we will use it...