That could have been the issue indeed but sadly, this getting the nil as answer ;(Klonan wrote:I think i foudn the issue:You concatenated the values, where they should be likeCode: Select all
global.force_pos = {global.force_x .. global.force_y}
Code: Select all
global.force_pos = {global.force_x , global.force_y}
Search found 4 matches
- Mon Mar 28, 2016 8:25 pm
- Forum: Modding help
- Topic: FFA mode - Random Spawn and own faction
- Replies: 8
- Views: 3422
Re: FFA mode - Random Spawn and own faction
- Mon Mar 28, 2016 5:04 pm
- Forum: Modding help
- Topic: FFA mode - Random Spawn and own faction
- Replies: 8
- Views: 3422
Re: FFA mode - Random Spawn and own faction
After some testing I'm still unable to resolve the issue.
I've updated my code to work with the game ticks (for a delay of 30s to chart)
However, I've let my code run for over 20 mins with the is_chunk_charted check and it kept returning false so I still don't know how to teleport the player safely ...
I've updated my code to work with the game ticks (for a delay of 30s to chart)
However, I've let my code run for over 20 mins with the is_chunk_charted check and it kept returning false so I still don't know how to teleport the player safely ...
- Mon Mar 28, 2016 8:44 am
- Forum: Modding help
- Topic: FFA mode - Random Spawn and own faction
- Replies: 8
- Views: 3422
Re: FFA mode - Random Spawn and own faction
The reason the position might be nil, even if its suitable, is because it hasn't been charted before the player is teleported there,
Thus the game is trying to find a position on some place which there are no tiles generated yet
How should I chart this?
game.forces["player"].chart(s,{{ x - bd, y ...
Thus the game is trying to find a position on some place which there are no tiles generated yet
How should I chart this?
game.forces["player"].chart(s,{{ x - bd, y ...
- Sun Mar 27, 2016 11:15 pm
- Forum: Modding help
- Topic: FFA mode - Random Spawn and own faction
- Replies: 8
- Views: 3422
FFA mode - Random Spawn and own faction
Hello
I'm trying to create a FFA scenario to play with my friends. This mode will allow us to have our own bases, our own research all seperatly but a non-hostile faction treatie.
For this mode I'd like to have the following setup:
-Random Faction (based on player name - works)
-Random Spawn (doesn ...
I'm trying to create a FFA scenario to play with my friends. This mode will allow us to have our own bases, our own research all seperatly but a non-hostile faction treatie.
For this mode I'd like to have the following setup:
-Random Faction (based on player name - works)
-Random Spawn (doesn ...