Virtual Speditor Program - Job scheduler program (Upd. 05.09.2020)

WarDog669
Posts: 67
Joined: 27 May 2015 19:45

Re: Virtual Speditor Program

#41 Post by WarDog669 » 28 Jan 2016 13:28

xyzan wrote:@WarDog669 - this is not a bug - it is written in first post why is that. I have no distances between cities, so I've set distance as 3000km - this distance is used for calculation of:
1. payment
2. delivery time
if I'll put it to low, then delivery time will be to short for longer routes, but if I put it to high, then payment for short distances is to big... It is matter of trade off. If someone has a table of distances between all cities in ETS (with mods like ProMods, TSM, RusMap, and all of them) then I can try to implement this, so the payment will be adequate to distance.
oops missed it in the first post :oops:

You can use easy culc' of distance between GEO(lat/long) points and add 10-15% due to the roads not being "straight" between the cities, in this case you only need the "city" GEO(lat/long) data.
WarDog669
WOTR

User avatar
Bandit & The Snowman
Posts: 2201
Joined: 23 Oct 2014 15:55
Location: East Bound and Down
Contact:

Re: Virtual Speditor Program

#42 Post by Bandit & The Snowman » 28 Jan 2016 14:11

supric wrote:Exact distance between companies stored somewhere in map files.
Do you have any more info on that? It would be quite useful to make a table not only for human reading, without having to tediously measure distances (which is at least possible since we have manual route editing).
The best thing would be if there were all points of interest like repair shops, truck dealers, rest areas, gas stations etc.

User avatar
old.Trucker
Posts: 815
Joined: 18 Aug 2013 15:30
Location: Highways, Trucker Lands

Re: Virtual Speditor Program

#43 Post by old.Trucker » 28 Jan 2016 17:42

Work fine for me, thank you very much ...
I have so far done it manually and changing only the desired target city but this is a much faster, easier and more elegant ... ;)
Understanding 'map editor' is really easy, all you have to do is understand 'map editor' ... :o
(BigTrucker) old.Trucker = more millions km in: 18 WoS series (+Extreme Trucker) + Rig'n'Roll (California) + ETS + GTS + UKTS + STDS + ETS2 + ATS

Peterbilt & Mercedes + TruckersMP = Trucking

User avatar
xyzan
Posts: 1792
Joined: 30 Jan 2015 19:36
Location: Warsaw, Poland

Re: Virtual Speditor Program

#44 Post by xyzan » 28 Jan 2016 19:59

WarDog669 wrote:
You can use easy culc' of distance between GEO(lat/long) points and add 10-15% due to the roads not being "straight" between the cities, in this case you only need the "city" GEO(lat/long) data.
Yes, I can... do you have that data? ETS with promods has about 260 cities. So, there are (260x260)/2 - 260 combination of distances... I don't have time, to search for about 30'000 numbers on geo map. This is answer, why I haven't done that yet ;)

User avatar
old.Trucker
Posts: 815
Joined: 18 Aug 2013 15:30
Location: Highways, Trucker Lands

Re: Virtual Speditor Program

#45 Post by old.Trucker » 28 Jan 2016 20:22

xyzan, of course, do not bother with total perfection. This is a great ... ;)
Understanding 'map editor' is really easy, all you have to do is understand 'map editor' ... :o
(BigTrucker) old.Trucker = more millions km in: 18 WoS series (+Extreme Trucker) + Rig'n'Roll (California) + ETS + GTS + UKTS + STDS + ETS2 + ATS

Peterbilt & Mercedes + TruckersMP = Trucking

WarDog669
Posts: 67
Joined: 27 May 2015 19:45

Re: Virtual Speditor Program

#46 Post by WarDog669 » 28 Jan 2016 22:26

xyzan wrote:
WarDog669 wrote:
You can use easy culc' of distance between GEO(lat/long) points and add 10-15% due to the roads not being "straight" between the cities, in this case you only need the "city" GEO(lat/long) data.
Yes, I can... do you have that data? ETS with promods has about 260 cities. So, there are (260x260)/2 - 260 combination of distances... I don't have time, to search for about 30'000 numbers on geo map. This is answer, why I haven't done that yet ;)
You don't need 30K of numbers, just 260(= # of cities), and then you have this site/formula that can do the math based on what you enter.

I mean when you select the mane of the city it put the correct corrdinations into the filed, and then culculates the "direct" line between the cities.

If you have a list of all ETS2 cites(cities added by modes too) I can make a GEO point list of the cities.
WarDog669
WOTR

User avatar
supric
Posts: 1237
Joined: 08 Jun 2013 09:44
Location: Russia, Tula

Re: Virtual Speditor Program

#47 Post by supric » 29 Jan 2016 06:12

The only sane way is to take distance from current jobs on a jobmarket. Storing distances will require squared number of cities count (260 * 260?) records in the matrix... i even don't talking about distance between companies )))

User avatar
xyzan
Posts: 1792
Joined: 30 Jan 2015 19:36
Location: Warsaw, Poland

Re: Virtual Speditor Program

#48 Post by xyzan » 29 Jan 2016 09:45

Storing distances would be square number of cities divided by 2, because distance from Paris - Berlin is the same, as Berlin - Paris.

Making calculation on geo location... hmm... that still needs a table of geolocations for each city, but it is much smaller... Taking from a job marked? Almost good idea, but I can see that in my save I have 1450 hits on "job_offer_data :" - this mean, that there is still about 30'000 combination missing ;)

@WarDog669 If you can provide file with geo location, I can try do something with that... But I need it for most popular map mods - Personally I use ProMods, but there is also TSM and RusMap... But, making this will disable for example hungary map mod (not telling about some Brazilian, etc) from this program... Do you understand the problem? It starts to become specific, no universal tool!
I wander if it would not be a better solution to give possibility to enter this manualy, while adding job. That estimation would be more accurate than fixed 3000km... if not entered, then just put fixed value...

User avatar
Mr Anthony
Posts: 2329
Joined: 24 May 2014 01:28
Location: Lincoln, UK
Contact:

Re: Virtual Speditor Program

#49 Post by Mr Anthony » 29 Jan 2016 13:40

This is brilliant!

Thank you. :D
Image
Image
Image

User avatar
Sniper
Posts: 534
Joined: 07 Dec 2012 18:00
Location: The other side

Re: Virtual Speditor Program

#50 Post by Sniper » 29 Jan 2016 14:05

supric wrote:Sniper:
Can you share source code in pascal?
Yes, I will put it on github. But I am using my own implementation of Rijndael cipher which I have to first rewrite (it is mess right now) and run some tests on.
xyzan wrote:can you PM me this dll? I will look at this...
Will do, I just have to prepare it.

Post Reply

Return to “Others”

Who is online

Users browsing this forum: DKDBEM4 and 7 guests