Allow changing the ...
 
Notifications
Clear all

Allow changing the url for ETS2 map component

1 Posts
1 Users
0 Reactions
2,320 Views
(@tagforce)
Active Member
Joined: 4 years ago
Posts: 4
Topic starter  

Hiya...

This maybe one of those 'Nobody's ever complained about that one' requests, but hear me out.

Right now, when you select the 'ETS2 Map (web only)' component in the dash studio, you can change the URL, but upon saving, it always reverts to the original "http://127.0.0.1/maps/map.html#norefresh' value, even if you set it to something else using a calculated value.

I'm creating a generic map for Forza Horizon 5, and I'll create one for FH4 after that, but the idea is that, given proper formatting of the information, the html page is usable for any open world game. I could go and edit the original ETS html file, but I don't really want to, as that will fail upon a re-install, and probably also an update of SimHUB.

Now, why do I want to use the ETS map component, and not just the 'web page' component? Simple, the web page component doesn't work well with the localhost address, en requires you to input the actual network IP address for it to work on different devices (like a mobile phone), whereas the localhost address works with the ETS map component. So it would be preferable to be able to have the ETS2 map component play nice with different URLs.

Can this behaviour be changed?

If not, then I'll have to make do with the web page item, or update the ETS map component map.html to work with all manner of games as long as there is a map and have you add it to the official package (since I'm optimizing it for FH5 at the moment while maintaining as much customization as possible, that might be a while).

 

Some of the things that I have changed to make it more adaptable:

  • Expand on the TileMapInfo file to include different values that are needed when creating different maps, like: center, offset, resolutions, coordinate scales for objects, coordinate translation multiplier to convert from Telemetry coordinates to map coordinates, which layerfiles exist and what they contain (I might define the layerfiles elsewhere for clarity later).
  • Option to include the playericon in the tsmap-xxx.zip file, so you have the option to include the actual pointer from the game.
  • Change the definition of the layers to accomodate for dynamic loading layers
  • Menu system to turn layers on/off. If, like FH5, there are a million and one objects to find, the map gets cluttered, so you can turn all the layers off, and just have, say, Barn Finds showing on the map.
  • Dynamic zoom which decreases with speed, so the faster you go, the more of the map you can see ahead.

It's still using OpenLayers, though. 🙂

 

This topic was modified 3 years ago by TagForce

   
Quote
Share: