Ticket #1183 (closed defect: invalid)
Add player team information to "PlayerData" for random maps
| Reported by: | Spahbod | Owned by: | |
|---|---|---|---|
| Priority: | Should Have | Milestone: | |
| Component: | Core engine | Keywords: | team, random, map |
| Cc: |
Description
We need the team information if we want to place allied players near each other. Currently PlayerData? only contains civ name.
Change History
comment:2 Changed 15 months ago by Spahbod
- Status changed from new to closed
- Resolution set to invalid
I am using atlas's generator which didn't work. But the data you posted showed something interesting. "None" is considered -1. Oddly enough Atlas didn't recognize "Team" for "PlayerData?" before but when I placed the function into library.js, it did. Now that I changed the function as you said, it is working. ticket closed.
Note: See
TracTickets for help on using
tickets.

Hmm, not sure what you mean. I've just tested and g_MapSettings.PlayerData looks like this (tested in latium.js):
[ {Name:"Player 1", Civ:"hele", Colour:{r:80, g:80, b:200}, AI:"", Team:-1}, {Name:"Player 2", Civ:"hele", Colour:{r:150, g:20, b:20}, AI:"qbot", Team:-1}, {Name:"Player 3", Civ:"hele", Colour:{r:50, g:165, b:5}, AI:"qbot", Team:-1}, {Name:"Player 4", Civ:"hele", Colour:{r:230, g:230, b:75}, AI:"qbot", Team:-1} ]Are you using autostart by chance, or going through menus?