Jump to content

Welcome to the Forum!

The best place to exchange builds and ideas! Vote for the best ideas and suggestions here.

Join the Avorion Discord!

Connect with other passionate players and talk about the latest news.
Discord

DLC Avorion Into the Rift Out Now!

Now available on Steam!
Steam

Cannot interact with galaxy map


struct_Nitori
 Share

Recommended Posts

It seems to be out of troubleshooting (https://www.avorion.net/forum/index.php/topic,5470.0.html).

I would like to describe our situation.

 

This is not occational in one environment.

[*]Open Galaxy Map

[*]Click a sector

[*]Nothing happens. No menu pop up.

We are currently aquiring information about environment.

OS Build CPU GPU Bug
Windows 10 Home 1803 Intel Core i7-4790K nVidia GTX 970 No
Windows 10 Home 1803 Intel Core i7-7700 nVidia GTX 1050 No
Windows 10 Home 1803 Intel Core i5-8250U nVidia MX 150 No
Windows 7 Home Premium SP1 AMD A8-5600K AMD Radeon R9 280X No
Windows 7 Ultimate SP2 Intel Corei7-7770 nVidia GTX1060 No
Windows 7 Home Premium SP1 Intel Core i7-4770 nVidia GTX 1050 Ti Yes
Windows 10 Home (?) 1803 Intel Core i7-6700 nVidia Quadro M1000M Yes
Link to comment
Share on other sites

I am sorry. I forget to attach client log. And I found this error. Required LUA file did exist. Some error in LUA interpretor is suspected.

 

2019-02-26 22-44-28| #0:  data/scripts/player/map/mapcommands.lua
2019-02-26 22-44-28| 
2019-02-26 22-44-28| Error while adding file data/scripts/player/map/mapcommands.lua:
2019-02-26 22-44-28| data/scripts/player/map/mapcommands.lua:2: module 'data/scripts/player/map/common' not found:
2019-02-26 22-44-28| 	no field package.preload['data/scripts/player/map/common']
2019-02-26 22-44-28| 	no file 'E:\[back][][savedata]\[Rigidchips]\lib\data/scripts/player/map/common'
2019-02-26 22-44-28| 	no file 'data/scripts/lib/data/scripts/player/map/common.lua'
2019-02-26 22-44-28| 	no file 'E:\Program Files (x86)\Steam\steamapps\common\Avorion\bin\data/scripts/player/map/common.dll'
2019-02-26 22-44-28| 	no file 'E:\Program Files (x86)\Steam\steamapps\common\Avorion\bin\loadall.dll'
2019-02-26 22-44-28| 	no file '.\data/scripts/player/map/common.dll'
2019-02-26 22-44-28| 
2019-02-26 22-44-28| Starting thread [stacktrace Sender]...
2019-02-26 22-44-28| Started thread [stacktrace Sender] with id 27
2019-02-26 22-44-28| Object: 12ClientPlayer
2019-02-26 22-44-28| Execution Context (inner to outer):
2019-02-26 22-44-28| #0:  data/scripts/player/map/maproutes.lua
2019-02-26 22-44-28| 
2019-02-26 22-44-28| Error while adding file data/scripts/player/map/maproutes.lua:
2019-02-26 22-44-28| data/scripts/player/map/maproutes.lua:2: module 'data/scripts/player/map/common' not found:
2019-02-26 22-44-28| 	no field package.preload['data/scripts/player/map/common']
2019-02-26 22-44-28| 	no file 'E:\[back][][savedata]\[Rigidchips]\lib\data/scripts/player/map/common'
2019-02-26 22-44-28| 	no file 'data/scripts/lib/data/scripts/player/map/common.lua'
2019-02-26 22-44-28| 	no file 'data/scripts/lib/data/scripts/player/map/common.lua'
2019-02-26 22-44-28| 	no file 'E:\Program Files (x86)\Steam\steamapps\common\Avorion\bin\data/scripts/player/map/common.dll'
2019-02-26 22-44-28| 	no file 'E:\Program Files (x86)\Steam\steamapps\common\Avorion\bin\loadall.dll'
2019-02-26 22-44-28| 	no file '.\data/scripts/player/map/common.dll'

clientlog_2019-02-26_22-43-47.txt

Link to comment
Share on other sites

Finally, I found a way to resolve this problem: unregistering Windows Environment Variable "LUA_PATH". It is somewhat competing with Avorion "package.path".

 

By the way, I compared inoperable "mappcommands.lua" and "maproutes.lua" with rest operable LUA codes. I found the following differences. require() in "map*s.lua" contains both path and file name, while require() in other LUA codes contains only file name.

 

mapcommands.lua

maproutes.lua

package.path = package.path .. ";data/scripts/lib/?.lua"
require("data/scripts/player/map/common")

 

other Lua codes

package.path = package.path .. ";data/scripts/lib/?.lua"
require ("galaxy")

Link to comment
Share on other sites

2 out of 2 cases were solved by the above method. It is evident that LUA_PATH is the cause. Then,  we could figure out how to reproduce this bug in Windows 7/10 by the following procedure.

 

1. In Windows 7/10.
2. Open Control Panel.
3. Go to System and Security.
4. Go to System.
5. Go to Advanced system settings.
6. Go to Environment variables.
7. Register "LUA_PATH" with a path to a LUA library directory or a dummy directory.
8. Restart Windows. 
9. Launch Avorion.
10. Start Singleplayer or Multiplayer.
11. Open Galaxy Map.
12. Left click arbitrary sector. 
13. No menu pops up.
14. To solve this problem, not only unregistration of LUA_PATH, but also restarting Windows after it is required.

 

I searched for LUA_PATH in this forum. Only one result below is found. It seems to be very similar with this bug.

https://www.avorion.net/forum/index.php/topic,4995.msg27355.html#msg27355

 

Update 1. Restarting Windows was necessary both in registration and unregistration.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...