Long and Far Reach


Long Reach. You can interact with most entities in the game far away. You can even use the map and zoom in and interact this way, as long as there is radar coverage.

Content
3 years ago
0.15 - 1.1
31.9K
Cheats

b Error in event on_player_joined_game

4 months ago

After starting a new singleplayer game, I've found this in my logfile:

40218.597 Script @__themightygugi_longreach__/event.lua:185: Error in event on_player_joined_game: "LuaPlayer doesn't contain key force_item_pickup_distance_bonus.".

In function set_join_options(), you're trying to access the following properties:

game.players[event.player_index].force_item_pickup_distance_bonus
game.players[event.player_index].force_loot_pickup_distance_bonus

I suppose this may have worked 3 years ago, but nowadays LuaPlayer::force_item_pickup_distance_bonus and LuaPlayer::force_loot_pickup_distance_bonus don't exist anymore. Instead, we have LuaForce::character_item_pickup_distance_bonus and LuaForce::character_loot_pickup_distance_bonus, so you should use

game.players[event.player_index].force.character_item_pickup_distance_bonus
game.players[event.player_index].force.character_loot_pickup_distance_bonus

instead.

New response