delegates required - Resolved -
-
POS2 says some delegates are not required but I saw no indication of which.
I would like to designate which are / are not.
Anyone know about this?
-
Each delegate represents a phase in the game. So if one is making a game without a bid phase, they simply exclude it. This principle applies to most of the delegates.
However to make a functional game you probably at a minimum, need one initDelegate at beginning and one of each of the following, move, battle, endTurn, in the sequence for each player and one endRound at the end.
-
So we do not know for sure if any are required (by the engine) , meaning needed or the engine will error.
-
@mahks yea idk what's needed either. Trial and error is probably the way to go.
Fwiw I do know you can have some players have different delegates and it still works.
-
I am not sure what will cause the game to give errors. But for a barebones game I would use the ones I mention above. Maybe developer can answer further.
-
@general_zod I thought you were a developer. Who are the developers?
-
@mahks devs are @RoiEX @LaFayette @redrum @ssoloff but yes zod has been doing this long time as well
-
I'm a player, mapmaker, lobby mod, forum admin, and 1of 5 triplea council members.
-
Btw, we need more developers if you know java.
-
I know nothing of java, how similar is it to javascript?
Also I'm not sure how I would work in a group environment. All my coding knowledge is self taught and my practises non-standard. Though maybe by learning java I could also learn standards? Probably not, being an old dog and all.
-
@redrum can fill you in on differences between java and javascript. I don't want to misinform you.
I think self taught is great. It shows you have the initiative and interest to learn.
Your assisting TripleA already by working on XOB. This is something we needed for a while. It will help people take full advantage of the TripleA platform by providing them with a friendlier method to learn the ropes. And to make new mods of existing maps and eventually brand new original maps. Which is one of it's coolest features aside from just playing.
-
@Mahks Despite the name, javascript is nothing like java ^^
However the basic syntax is pretty similar, it's a C-like syntax using curly brackets and semicolons I.e. If statements while and for loops still exist ^^
There's nothing wrong with self teaching, I started programming this way too.
If you're interested, I can give you an introduction to the triplea codebase and help you to get started, but contributing to the documentation is already enough help for now. -
@roiex Yah, I'm already burning out...
-
@Mahks I believe just about all delegates are optional though at some point you wouldn't really have much of a game without at least some sort of move and battle delegates. I'm not sure if you can leave out the InitializationDelegate as I can't remember exactly what that does and if you can create a map without it. That might be the only 1 that is absolutely required though it would be hard to have a playable map without at least a few of the others.