Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto-mapper integration sample #1

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

APXEOLOG
Copy link
Owner

@APXEOLOG APXEOLOG commented Mar 1, 2020

Integration sample for: https://github.com/APXEOLOG/hnh-auto-mapper-server

Some notes:

  • First commit is core auto-mapper code
  • Second commit is integration with client's data
  • Third commit is UI things
  • Two resources added for the Minimap location icon

Map endpoint is hardcoded at the integrations.map.RemoteNavigation#MAP_ENDPOINT

@YassienW
Copy link

YassienW commented Mar 2, 2020

I seem to be getting an error related to those res files you added:

Linux 5.3.0-40-generic, 1.8.0_242 amd64
Intel Open Source Technology Center (Mesa DRI Intel(R) Haswell Mobile ) - 3.0 Mesa 19.2.8

java.lang.RuntimeException: Delayed error in resource gfx/hud/geoloc-green (v-1), from local res source
	at haven.Resource$Pool$Queued.get(Resource.java:405)
	at haven.Resource$Pool$Queued.get(Resource.java:374)
	at haven.Loading.waitforint(Loading.java:87)
	at haven.Loading.waitfor(Loading.java:99)
	at haven.Resource$Pool.loadwait(Resource.java:686)
	at haven.Resource$Pool.loadwait(Resource.java:690)
	at haven.Resource.loadimg(Resource.java:1540)
	at haven.MinimapWnd$6.<init>(MinimapWnd.java:121)
	at haven.MinimapWnd.<init>(MinimapWnd.java:120)
	at haven.GameUI.minimap(GameUI.java:722)
	at haven.GameUI.addchild(GameUI.java:580)
	at haven.UI.newwidget(UI.java:173)
	at haven.RemoteUI.run(RemoteUI.java:66)
	at haven.MainFrame.run(MainFrame.java:268)
	at java.lang.Thread.run(Thread.java:748)
Caused by: haven.Resource$LoadException: Load error in resource gfx/hud/geoloc-green(v-1), from local res source
	at haven.Resource$Pool.handle(Resource.java:466)
	at haven.Resource$Pool.access$1100(Resource.java:351)
	at haven.Resource$Pool$Loader.run(Resource.java:607)
	... 1 more
Caused by: java.io.FileNotFoundException: Could not find resource locally: gfx/hud/geoloc-green
	at haven.Resource$JarSource.get(Resource.java:255)
	at haven.Resource$Pool.handle(Resource.java:450)
	... 3 more

Any idea why that might be?

@APXEOLOG
Copy link
Owner Author

APXEOLOG commented Mar 2, 2020

@YassienW Hmm i gues you actually will need to manually put them into proper place of the res/ folder. I think they are not copied by build script

@YassienW
Copy link

YassienW commented Mar 2, 2020

If you are referring to the build/res/ folder i did check and they were automatically copied there along with the other res files

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants