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

https://github.com/FS19_AutoDrive.git #11

Open
wants to merge 483 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
483 commits
Select commit Hold shift + click to select a range
6f452e1
MP redraw HUD to update destinations
Stephan-S Sep 27, 2019
3913772
Updated Editor for cyrillic support and to update map name
Stephan-S Sep 28, 2019
ee2572e
Added first iteration of active unloading
Stephan-S Sep 28, 2019
927d6e4
Update translation_cz.xml
raxtor Sep 28, 2019
f2b2064
Update translation_ru.xml
Gonimy-Vetrom Sep 29, 2019
d3f21c1
Updates for combine chaser mode
Stephan-S Sep 29, 2019
16b41a1
Chase mode updates
Stephan-S Sep 30, 2019
68abb1b
Merge pull request #543 from raxtor/master
Stephan-S Sep 30, 2019
22b3eb8
Merge pull request #547 from Gonimy-Vetrom/patch-11
Stephan-S Sep 30, 2019
d182d56
Release 1.0.5.9
Stephan-S Sep 30, 2019
b2993df
Bugfix for missing waypoints when using quick path finder
Stephan-S Sep 30, 2019
c81e886
Shortcut pathfinder added
Oct 1, 2019
59a0a25
Combine chase update
Stephan-S Oct 1, 2019
04bbed4
Release 1.0.6.0
Stephan-S Oct 1, 2019
9bded23
Create translation_pl.xml
criss20ster Oct 2, 2019
912a370
Updated chase mode and path finder
Stephan-S Oct 2, 2019
a382d57
Fix Pulldown list for users who don't use folders yet
Stephan-S Oct 3, 2019
8a30968
Fixed groups in MP
Stephan-S Oct 3, 2019
1c77f71
Included Map Hotspots
Stephan-S Oct 3, 2019
bfcb478
Release 1.0.6.1
Stephan-S Oct 3, 2019
5df59af
Merge pull request #558 from criss20ster/patch-3
Stephan-S Oct 3, 2019
8247ae7
Update translation_it.xml
Roby1164 Oct 3, 2019
3e6178e
Merge pull request #565 from Roby1164/patch-12
Stephan-S Oct 3, 2019
b1c3349
Chase mode updates
Stephan-S Oct 4, 2019
bf551b8
Chase combine update
Stephan-S Oct 4, 2019
eb24c87
Changed loop counter to stop at unload target again
Stephan-S Oct 4, 2019
b8c40d6
Further chase combine improvements
Stephan-S Oct 5, 2019
b5f9535
Virtual front fruit sensor width adjusted
Stephan-S Oct 5, 2019
1fc2205
Added reverse action to 'wait for combine to turn' action
Stephan-S Oct 5, 2019
8d9aec9
Adjusted speed on final approach of chaser.
Stephan-S Oct 5, 2019
3200d7c
MP test
Stephan-S Oct 5, 2019
1060702
Added cmd file to open editor
Stephan-S Oct 5, 2019
6e339ce
Give the Editor more RAM to work with larger files on x86 PCs
Stephan-S Oct 6, 2019
25a5031
Added nil check on config load
Stephan-S Oct 6, 2019
b22d500
And now the heap space parameters are sent to the jar and not the edi…
Stephan-S Oct 6, 2019
08b297c
Fixed bug which set the unload destination wrong.
Stephan-S Oct 6, 2019
d74aa9a
Bugfixes in speed to last waypoint
Stephan-S Oct 6, 2019
6884601
Added some nil checks and increased box for smooth path finding colli…
Stephan-S Oct 6, 2019
7bed02f
Fix typo
Stephan-S Oct 6, 2019
b092966
Better braking at the end of the road
Stephan-S Oct 6, 2019
43ed2e1
Release 1.0.6.2
Stephan-S Oct 7, 2019
e447119
Release 1.0.6.3
Stephan-S Oct 7, 2019
5188370
Improved trigger detection
Stephan-S Oct 8, 2019
8be0de4
Update translation_cz.xml
raxtor Oct 8, 2019
6e4c946
Update translation_cz.xml
raxtor Oct 8, 2019
f776ca4
Update translation_ru.xml
Gonimy-Vetrom Oct 9, 2019
44a1efd
Improved trigger detection
Anonymous-any Oct 10, 2019
3cfcd60
Fix for trailer covers for unloaders
Stephan-S Oct 10, 2019
c468423
Added missing init
Stephan-S Oct 10, 2019
75a068c
Merge pull request #614 from Anonymous-any/patch-12
Stephan-S Oct 10, 2019
cbb9085
Merge pull request #609 from Gonimy-Vetrom/patch-12
Stephan-S Oct 10, 2019
7822c35
Merge pull request #606 from raxtor/master
Stephan-S Oct 10, 2019
3e18d64
Update translation_it.xml
Roby1164 Oct 11, 2019
5f71de4
Fixed bug which occured when deleting a currently selected destination
Stephan-S Oct 11, 2019
3026983
Merge pull request #618 from Roby1164/patch-13
Stephan-S Oct 11, 2019
f563796
Tweaked collision box height
Stephan-S Oct 11, 2019
af5bb1d
Improved radius detection
Stephan-S Oct 11, 2019
ebc867f
Only use wages when AD is active and not already if AI is active
Stephan-S Oct 12, 2019
a503b44
Update translation_pl.xml
Dzi4d3k Oct 12, 2019
b28a2c7
Fixes for distribute folder error
Stephan-S Oct 13, 2019
788a014
Improved trigger detection
Anonymous-any Oct 14, 2019
154c7eb
Merge pull request #634 from Anonymous-any/patch-2
Stephan-S Oct 18, 2019
8639697
Merge pull request #625 from Dzi4d3k/patch-1
Stephan-S Oct 18, 2019
3ff6558
Stopped filtering for large fill units
Stephan-S Oct 18, 2019
79d46e6
Merge branch 'master' of https://github.com/Stephan-S/FS19_AutoDrive
Stephan-S Oct 18, 2019
73e12f5
Release 1.0.6.4
Stephan-S Oct 18, 2019
aaf53e4
Added nil check for missing trigger (e.g. sold triggers)
Stephan-S Oct 18, 2019
39754e8
Added beacon lights
Stephan-S Oct 18, 2019
c7c0dcc
Fixes + new translations
Dzi4d3k Oct 18, 2019
72bc562
Update translation_ru.xml
Gonimy-Vetrom Oct 18, 2019
4c1a177
Update translation_it.xml
Roby1164 Oct 19, 2019
d11e00c
Merge pull request #652 from Roby1164/patch-14
Stephan-S Oct 19, 2019
4e10efa
Merge pull request #648 from Gonimy-Vetrom/patch-13
Stephan-S Oct 19, 2019
afd1a5e
Merge pull request #647 from Dzi4d3k/patch-2
Stephan-S Oct 19, 2019
f7c29bf
New Hud concept + fixes
Stephan-S Oct 19, 2019
b1acde3
Also adjusted the remaining two setting pages to the new format
Stephan-S Oct 19, 2019
c16a6bf
Added brazilian translation
Stephan-S Oct 19, 2019
0f618c3
Fixes issue #654
Stephan-S Oct 19, 2019
ce5b615
Better support for trucks with attached storage bins
Stephan-S Oct 19, 2019
b04aa9b
Fixed hud
Stephan-S Oct 20, 2019
8047e6e
Added option to restrict path planning to field borders
Stephan-S Oct 20, 2019
74bcc6d
Removed debug message
Stephan-S Oct 20, 2019
8675d1d
Release 1.0.6.5
Stephan-S Oct 20, 2019
6f06e0d
Update translation_it.xml
Roby1164 Oct 20, 2019
003a4bc
Update translation_br.xml
rogeriodec Oct 20, 2019
9d45360
Add translations for 1.0.6.5
Dzi4d3k Oct 20, 2019
cdcfb7e
Update translation_cz.xml
raxtor Oct 20, 2019
2a21b94
Update translation_cz.xml
raxtor Oct 20, 2019
0a68de2
Update translation_cz.xml
raxtor Oct 22, 2019
6e6fd8b
Update translation_br.xml
rogeriodec Oct 23, 2019
1b2445f
Call onAIEnd when disbaling AutoDrive
Stephan-S Oct 23, 2019
3c4975b
Update translation_br.xml
rogeriodec Oct 23, 2019
e3a44c1
Improved initial config for Felsbrunn map
TyKonKet Oct 24, 2019
10a8f2b
Claas fix
Stephan-S Oct 25, 2019
56fc1b9
Merge branch 'master' of https://github.com/Stephan-S/FS19_AutoDrive
Stephan-S Oct 25, 2019
a7a86a6
Merge pull request #688 from TyKonKet/master
Stephan-S Oct 25, 2019
1dd7d66
Merge pull request #670 from raxtor/master
Stephan-S Oct 25, 2019
7ebb1d2
Merge pull request #669 from Dzi4d3k/patch-1
Stephan-S Oct 25, 2019
70a79bf
Merge pull request #665 from rogeriodec/patch-2
Stephan-S Oct 25, 2019
7c4caad
Merge pull request #663 from Roby1164/patch-15
Stephan-S Oct 25, 2019
29abb7e
Update translation_ru.xml
Gonimy-Vetrom Oct 26, 2019
6e323ec
Release 1.0.6.6
Stephan-S Oct 27, 2019
d9cc1ad
New Hud textures
Stephan-S Oct 27, 2019
37dc3d6
Merge branch 'master' of https://github.com/Stephan-S/FS19_AutoDrive
Stephan-S Oct 27, 2019
be48f48
Merge pull request #698 from Gonimy-Vetrom/patch-14
Stephan-S Oct 27, 2019
d5627a5
Addes zip file
Stephan-S Oct 27, 2019
e778aa4
Fixed dds file format to Dxt3
Stephan-S Oct 27, 2019
977b42e
Moved dual way recording to secondary function
Stephan-S Oct 27, 2019
d6617a7
Updated nl translation
Stephan-S Oct 28, 2019
3baa5a5
Fix for missing range check
Stephan-S Oct 28, 2019
eee53a1
Update translation_br.xml
rogeriodec Oct 28, 2019
bded0a7
Commit
Stephan-S Oct 29, 2019
6f7c25f
for 1.0.6.6a
Dzi4d3k Oct 29, 2019
6c217bd
Update translation_it.xml
Roby1164 Oct 30, 2019
07625d9
register.lua refactoring
TyKonKet Oct 30, 2019
cab3d2f
Update register.lua
TyKonKet Oct 30, 2019
53523b2
Better aspect:ratio support of AD settings-screen, and with working Q…
DeckerMMIV Oct 30, 2019
6b757a6
Started load mode code overhaul
Stephan-S Oct 30, 2019
21dec04
Merge pull request #713 from rogeriodec/patch-3
Stephan-S Oct 30, 2019
e0d9e4c
Merge pull request #725 from Dzi4d3k/patch-4
Stephan-S Oct 30, 2019
95e6093
Merge pull request #731 from Roby1164/patch-16
Stephan-S Oct 30, 2019
67ba2d3
Merge pull request #732 from TyKonKet/master
Stephan-S Oct 30, 2019
f4efc31
Merge pull request #736 from DeckerMMIV/master
Stephan-S Oct 30, 2019
584c212
Update translation_it.xml
Roby1164 Oct 30, 2019
ac4521a
for 1.0.6.6b
Dzi4d3k Oct 30, 2019
0c97e0e
line shift to match EN
Dzi4d3k Oct 30, 2019
3d9c8a4
EnterTargetName GUI rework
TyKonKet Oct 30, 2019
7563c04
Started load mode code overhaul
Anonymous-any Oct 31, 2019
5a4af8a
EnterDriverName GUI rework
TyKonKet Oct 31, 2019
abf1c9e
EnterTargetName GUI related fixes
TyKonKet Oct 31, 2019
980dc6c
EnterGroupName GUI rework
TyKonKet Oct 31, 2019
1469464
Fixed the loss of focus on dialog opening
TyKonKet Oct 31, 2019
0a0e4a4
Dialogs text fields are now always focussed
TyKonKet Oct 31, 2019
13b6bb1
Further load mode rework
Stephan-S Oct 31, 2019
6624e7b
Merge pull request #746 from TyKonKet/guiRework
Stephan-S Oct 31, 2019
3822e6d
Merge pull request #744 from Anonymous-any/patch-3
Stephan-S Oct 31, 2019
023414b
Merge pull request #738 from Dzi4d3k/patch-5
Stephan-S Oct 31, 2019
2978935
Merge pull request #737 from Roby1164/patch-17
Stephan-S Oct 31, 2019
31c96ea
Increased version number
Stephan-S Oct 31, 2019
76f54e3
Removed pipe offset adjustment
Stephan-S Oct 31, 2019
619f5ed
Switched mouse event down to mouse event up events for HUD Buttons
Stephan-S Oct 31, 2019
0f4b183
Update translation_it.xml
Roby1164 Nov 1, 2019
04377c3
Update translation_it.xml
TyKonKet Nov 1, 2019
827e52a
Merge pull request #751 from Roby1164/patch-18
TyKonKet Nov 1, 2019
229a743
Improved recalculation perfomance
Stephan-S Nov 1, 2019
d0dc461
Check if trigger.source exists and if it has the getAllFillLevels method
Stephan-S Nov 1, 2019
4c47913
Removed delay on dialog opening
TyKonKet Nov 1, 2019
0b7b358
Merge branch 'master' of https://github.com/Stephan-S/FS19_AutoDrive
TyKonKet Nov 1, 2019
ae907b3
for 1.0.6.6c + some typos
Dzi4d3k Nov 1, 2019
2960a3f
Improved target management
TyKonKet Nov 1, 2019
9038f9e
Merge pull request #757 from Dzi4d3k/patch-6
TyKonKet Nov 1, 2019
3524d53
new destination managment
Dzi4d3k Nov 1, 2019
1c65c74
Merge pull request #759 from Dzi4d3k/patch-7
TyKonKet Nov 1, 2019
a0b8b08
Updated german translation
Stephan-S Nov 2, 2019
3ac0f50
Fixed multiplayer synchronization
Stephan-S Nov 2, 2019
56584a7
Updates dutch translation 1.0.6.6c
Bobster82 Nov 2, 2019
d700a0e
Added dynamic trigger detection
Stephan-S Nov 2, 2019
28a6d53
Merge pull request #765 from Bobster82/master
Stephan-S Nov 2, 2019
a065a66
Update translation_ru.xml
Gonimy-Vetrom Nov 2, 2019
0d066f8
Merge pull request #768 from Gonimy-Vetrom/patch-15
TyKonKet Nov 2, 2019
b65b219
Synchronized all translations
TyKonKet Nov 2, 2019
33a1266
Update translation_cz.xml
raxtor Nov 2, 2019
5dd073a
Merge pull request #769 from raxtor/master
TyKonKet Nov 2, 2019
aa08706
Cleaned up old unused code
TyKonKet Nov 2, 2019
00c5646
Fixes to combine mode
Stephan-S Nov 3, 2019
ec35923
Refactored renderTable utility function
TyKonKet Nov 3, 2019
d952875
More old unused code cleanup
TyKonKet Nov 3, 2019
02d3a41
Merge branch 'master' of https://github.com/Stephan-S/FS19_AutoDrive
TyKonKet Nov 3, 2019
cf7c9e2
Reinserted external interface
Stephan-S Nov 3, 2019
ae99f06
MP sync of map markers renaming
TyKonKet Nov 3, 2019
28ae5cd
Improved event dispatching
TyKonKet Nov 3, 2019
13783a8
Update translation_fr.xml
Anonymous-any Nov 3, 2019
b209cfa
Update translation_es.xml
PromGames Nov 3, 2019
ea2546a
Update translation_es.xml
PromGames Nov 3, 2019
fbfc233
Bugfixes
Stephan-S Nov 3, 2019
06b9f30
Merge pull request #778 from PromGames/patch-6
Stephan-S Nov 3, 2019
649df62
Merge pull request #777 from Anonymous-any/patch-4
Stephan-S Nov 3, 2019
77169ee
Fixes and improvements
TyKonKet Nov 3, 2019
5225d2c
Release 1.0.6.7
Stephan-S Nov 3, 2019
82756cf
Moved markers creation to new event architecture
TyKonKet Nov 3, 2019
7ce661a
Nil check
Stephan-S Nov 3, 2019
f2d3e28
Fixes and improvements
TyKonKet Nov 3, 2019
ac1fd10
Moved markers deletion to new event architecture
TyKonKet Nov 4, 2019
1026644
Enabled folders/groups management on MP #780
TyKonKet Nov 4, 2019
5fd0c61
Fixed renderTable util function
TyKonKet Nov 4, 2019
2558510
Bugfix in checking if current fill unit is full
Stephan-S Nov 4, 2019
4a8dfa2
Refactored removeGroup function
TyKonKet Nov 4, 2019
389cb0d
Locked inputs to prevent bugs while recalculation
TyKonKet Nov 4, 2019
8b4636d
Fix for Global Company triggers
Stephan-S Nov 4, 2019
ae7fc1b
small fixes and improvements
TyKonKet Nov 5, 2019
b0cf34e
reworked driver renaming
TyKonKet Nov 5, 2019
a5cbf09
improved map markers renaming
TyKonKet Nov 5, 2019
7b0cb03
Moved waypoints deletion to new event architecture
TyKonKet Nov 5, 2019
2c831c8
Aftertesting fixes
TyKonKet Nov 5, 2019
dd9bb3f
Merge pull request #794 from Stephan-S/multiPlayerRework
TyKonKet Nov 5, 2019
408103a
Small code review
TyKonKet Nov 5, 2019
de72009
Fix for vehicle specific settings not being synced with server
Stephan-S Nov 5, 2019
cc0acda
Removed debug texts
TyKonKet Nov 5, 2019
849fc98
Bugfix for MP sync of vehicle settings
Stephan-S Nov 6, 2019
70477b8
Possible fix for destinations not being selected
Stephan-S Nov 6, 2019
dcb660d
Included query for parkDestination in externalInterface
Stephan-S Nov 6, 2019
55b7f40
Network debug function
TyKonKet Nov 6, 2019
f361e78
Possible fix for #775
TyKonKet Nov 6, 2019
9f2f681
Code refactoring step 1
TyKonKet Nov 6, 2019
9b730f1
Update AutoDriveUpdateSettingsEvent.lua
Stephan-S Nov 6, 2019
dab87bd
Code refactoring step 2
TyKonKet Nov 6, 2019
04b9c18
Merge branch 'master' of https://github.com/Stephan-S/FS19_AutoDrive
TyKonKet Nov 6, 2019
6f0a1b9
Fixed typo
TyKonKet Nov 6, 2019
1d633f0
Code refactoring step 3
TyKonKet Nov 6, 2019
9dddaff
Fix for #803
TyKonKet Nov 6, 2019
6882858
Added auto recalculation option
Stephan-S Nov 6, 2019
dbeed60
Fixed #804
TyKonKet Nov 6, 2019
be99bbb
Fix typo
Stephan-S Nov 6, 2019
3d38a1e
Increased speed of MP waypoints sync
TyKonKet Nov 6, 2019
75af6bc
Merge branch 'master' of https://github.com/Stephan-S/FS19_AutoDrive
TyKonKet Nov 6, 2019
0f7e752
Code refactoring step 4
TyKonKet Nov 6, 2019
4bf3268
Code refactoring step 5
TyKonKet Nov 6, 2019
3e852dd
Fixed #809
TyKonKet Nov 7, 2019
0935764
Reworked MP handling
TyKonKet Nov 7, 2019
49c6e13
Reinserted spec_autodrive variable which is only used for external in…
Stephan-S Nov 7, 2019
d7847cf
Fixed #811
TyKonKet Nov 7, 2019
ebc05b1
Merge branch 'master' of https://github.com/Stephan-S/FS19_AutoDrive
TyKonKet Nov 7, 2019
e521564
Improved MP settings sync
TyKonKet Nov 7, 2019
712078f
Bugfix for ommited file in code refactoring
Stephan-S Nov 7, 2019
db04344
Improved settings sync on MP
TyKonKet Nov 7, 2019
ae60318
Merge branch 'master' of https://github.com/Stephan-S/FS19_AutoDrive
TyKonKet Nov 7, 2019
b86aad1
Trailer will continue after unload is done now
Stephan-S Nov 7, 2019
387aa6d
Fixed #816
TyKonKet Nov 8, 2019
8113bc7
Fix for trailers not unloading all the way
Stephan-S Nov 8, 2019
61824f7
Updated extrernal interface
Stephan-S Nov 8, 2019
5e10368
Update translation_it.xml
Roby1164 Nov 9, 2019
e60ad14
Merge pull request #830 from Roby1164/patch-19
Stephan-S Nov 9, 2019
dbc8955
Merge branch 'master' of https://github.com/Stephan-S/FS19_AutoDrive
Stephan-S Nov 9, 2019
b790c09
Moved AutoDrive:init()
Stephan-S Nov 9, 2019
d05c3a6
Automatic recalculation translation
Dzi4d3k Nov 9, 2019
85796ae
EN instead of DE
Dzi4d3k Nov 9, 2019
c301a5e
Merge pull request #833 from Dzi4d3k/patch-9
Stephan-S Nov 9, 2019
424400d
Merge pull request #832 from Dzi4d3k/patch-8
Stephan-S Nov 9, 2019
8fa45e7
Auto recalculation option french translated
Anonymous-any Nov 9, 2019
dd23a0b
Increased collison box to look in front of weights
Stephan-S Nov 9, 2019
0c0692d
Merge pull request #834 from Anonymous-any/patch-5
Stephan-S Nov 9, 2019
4f84e62
Update issue templates
Stephan-S Nov 9, 2019
59a9dfd
Added default german template
Stephan-S Nov 9, 2019
f97fa1e
Update issue templates
Stephan-S Nov 9, 2019
aaf030c
Included cotton
Stephan-S Nov 9, 2019
276791b
Bugfixes and improvements
Stephan-S Nov 9, 2019
a4a2adb
Bugfixes and improvements
Stephan-S Nov 10, 2019
7cd2903
Added key binding to swap the two destinations
Stephan-S Nov 10, 2019
8884b08
Fixed #827
TyKonKet Nov 10, 2019
59ac618
Added auto Refueling option
Stephan-S Nov 10, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions .github/ISSUE_TEMPLATE/default-bug-report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
name: Default bug report
about: Create a report to help us improve
title: ''
labels: ''
assignees: ''

---

AutoDrive Version: 1.0.
Release or custom zip: Release
Map (if applicable): All
Vehicle / type (applicable):

**Describe the bug**
A clear and concise description of what the bug is.

**If applicable - Steps to reproduce the behavior**

**Screenshots**
If applicable, add screenshots to help explain your problem.
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
name: Deutsch / German - Bug report - Titel bitte auf Englisch übersetzen!
about: Create a report to help us improve
title: ''
labels: ''
assignees: ''

---

AutoDrive Version: 1.0.
Release or selbsterstelltes zip: Release
Karte (falls relevant): Alle
Fahrzeug(art) (falls relevant):

**Beschreibe den Bug**
Eine klare Beschreibung des Bugs.

**Falls anwendbar - Schritte mit denen ich den Bug nachstellen kann**

**Screenshots**
Falls relevant, bitte Screenshots beifügen
20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: ''
assignees: ''

---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.
31 changes: 31 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,34 @@ combine.png
draw fsdensity query.txt
draw fsdensity query_neu.txt
empty.png
Check Coll And fruit in front of tractor.txt
AutoDrive Course Editor/.idea/AutoDrive Course Editor.iml
AutoDrive Course Editor/.idea/misc.xml
AutoDrive Course Editor/.idea/modules.xml
AutoDrive Course Editor/.idea/vcs.xml
AutoDrive Course Editor/.idea/workspace.xml
AutoDrive Course Editor/out
AutoDrive Course Editor/.idea
AutoDrive Course Editor/out/production/AutoDrive Course Editor/ADUtils.class
AutoDrive Course Editor/out/production/AutoDrive Course Editor/AutoDriveEditor$1.class
AutoDrive Course Editor/out/production/AutoDrive Course Editor/AutoDriveEditor.class
AutoDrive Course Editor/out/production/AutoDrive Course Editor/EditorListener.class
AutoDrive Course Editor/out/production/AutoDrive Course Editor/mapImages/Agrovation_Knezmost.png
AutoDrive Course Editor/out/production/AutoDrive Course Editor/mapImages/Estancia_Lapacho.png
AutoDrive Course Editor/out/production/AutoDrive Course Editor/mapImages/Felsbrunn.png
AutoDrive Course Editor/out/production/AutoDrive Course Editor/mapImages/FS19_Dondiego_Map.png
AutoDrive Course Editor/out/production/AutoDrive Course Editor/mapImages/FS19_Rolling_Hills_BETA_V_01.png
AutoDrive Course Editor/out/production/AutoDrive Course Editor/mapImages/Goeddenstedt.png
AutoDrive Course Editor/out/production/AutoDrive Course Editor/mapImages/Marwell_Manor_Farm.png
AutoDrive Course Editor/out/production/AutoDrive Course Editor/mapImages/MarwellManor.png
AutoDrive Course Editor/out/production/AutoDrive Course Editor/mapImages/Multimap_2019.png
AutoDrive Course Editor/out/production/AutoDrive Course Editor/mapImages/NF_Marsch_V1_4.png
AutoDrive Course Editor/out/production/AutoDrive Course Editor/mapImages/Ravenport.png
AutoDrive Course Editor/out/production/AutoDrive Course Editor/MapMarker.class
AutoDrive Course Editor/out/production/AutoDrive Course Editor/MapNode.class
AutoDrive Course Editor/out/production/AutoDrive Course Editor/MapPanel.class
AutoDrive Course Editor/out/production/AutoDrive Course Editor/MouseListener.class
AutoDrive Course Editor/out/production/AutoDrive Course Editor/RoadMap.class
modConfig.json
.vscode
tmp
Binary file modified AutoDrive Course Editor/AD.jar
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
java.exe -jar -Xms1024m -Xmx1024m .\AD.Jar
pause
79 changes: 70 additions & 9 deletions AutoDrive Course Editor/src/AutoDriveEditor.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@
import org.xml.sax.SAXException;

import java.io.File;
import java.io.UnsupportedEncodingException;
import java.net.URL;
import java.net.URLDecoder;
import java.util.LinkedList;
import java.util.Map;
import java.util.TreeMap;
Expand All @@ -48,10 +50,12 @@ public class AutoDriveEditor extends JFrame {
public JToggleButton createNode;
public JToggleButton createDestination;
public JToggleButton fourTimesMap;
public JToggleButton sixteenTimesMap;

public MapNode selected = null;

public boolean isFourTimesMap = false;
public boolean isSixteenTimesMap = false;

public int editorState = EDITORSTATE_MOVING;

Expand Down Expand Up @@ -120,11 +124,16 @@ public AutoDriveEditor() {
createDestination.setActionCommand("Create Destinations");
buttonPanel.add(createDestination);

fourTimesMap = new JToggleButton("Four times Map");
fourTimesMap = new JToggleButton(" 4x");
fourTimesMap.addActionListener(this.editorListener);
fourTimesMap.setActionCommand("FourTimesMap");
buttonPanel.add(fourTimesMap);

sixteenTimesMap = new JToggleButton(" 16x");
sixteenTimesMap.addActionListener(this.editorListener);
sixteenTimesMap.setActionCommand("SixteenTimesMap");
buttonPanel.add(sixteenTimesMap);

saveButton = new JButton("Save");
saveButton.addActionListener(this.editorListener);
saveButton.setActionCommand("Save");
Expand Down Expand Up @@ -173,22 +182,29 @@ public RoadMap loadFile(String path) throws ParserConfigurationException, IOExce
NodeList markerList = doc.getElementsByTagName("mapmarker");
LinkedList<MapMarker> mapMarkers = new LinkedList<>();

TreeMap<Integer, String> mapMarkerTree = new TreeMap<>();
TreeMap<Integer, MapMarker> mapMarkerTree = new TreeMap<>();
for (int temp = 0; temp < markerList.getLength(); temp++) {
Node markerNode = markerList.item(temp);
if (markerNode.getNodeType() == Node.ELEMENT_NODE) {
Element eElement = (Element) markerNode;

NodeList idNodeList = eElement.getElementsByTagName("id");
NodeList nameNodeList = eElement.getElementsByTagName("name");
NodeList groupNodeList = eElement.getElementsByTagName("group");

for (int markerIndex = 0; markerIndex<idNodeList.getLength(); markerIndex++ ) {
Node node = (Node) idNodeList.item(markerIndex).getChildNodes().item(0);
String markerNodeId = node.getNodeValue();

node = (Node) nameNodeList.item(markerIndex).getChildNodes().item(0);
String markerName = node.getNodeValue();
mapMarkerTree.put((int)Double.parseDouble(markerNodeId), markerName);

node = (Node) groupNodeList.item(markerIndex).getChildNodes().item(0);
String markerGroup = node.getNodeValue();

MapNode dummyNode = new MapNode((int)Double.parseDouble(markerNodeId), 0, 0, 0);
MapMarker mapMarker = new MapMarker(dummyNode, markerName, markerGroup);
mapMarkerTree.put((int)Double.parseDouble(markerNodeId), mapMarker);
}
}
}
Expand Down Expand Up @@ -249,19 +265,23 @@ public RoadMap loadFile(String path) throws ParserConfigurationException, IOExce
double y = Double.parseDouble(yValues[i]);
double z = Double.parseDouble(zValues[i]);

if (isFourTimesMap) {
if (isFourTimesMap && !isSixteenTimesMap) {
x = (x)/2.0;
z = (z)/2.0;
}
if (isSixteenTimesMap && !isFourTimesMap) {
x = (x)/4.0;
z = (z)/4.0;
}

MapNode mapNode = new MapNode(id, x, y, z);
nodes.add(mapNode);
}


for (Map.Entry<Integer, String> entry : mapMarkerTree.entrySet())
for (Map.Entry<Integer, MapMarker> entry : mapMarkerTree.entrySet())
{
mapMarkers.add(new MapMarker(nodes.get(entry.getKey()-1), entry.getValue()));
mapMarkers.add(new MapMarker(nodes.get(entry.getKey()-1), entry.getValue().name, entry.getValue().group));
}

for (int i=0; i<ids.length; i++) {
Expand Down Expand Up @@ -364,6 +384,9 @@ public RoadMap loadFile(String path) throws ParserConfigurationException, IOExce

if (image != null) {
mapPanel.image = image;
}

if (mapPanel.image != null) {
mapPanel.setPreferredSize(new Dimension(1024, 768));
mapPanel.setMinimumSize(new Dimension(1024, 768));
pack();
Expand All @@ -379,9 +402,22 @@ public void saveMap(String oldPath, String newPath) {
System.out.println("SaveMap called");
try {
String filepath = oldPath;
File file = null;
try {
filepath = URLDecoder.decode(filepath, "UTF-8");
file = new File(filepath);
} catch(UnsupportedEncodingException e) {
e.printStackTrace();
}
DocumentBuilderFactory docFactory = DocumentBuilderFactory.newInstance();
DocumentBuilder docBuilder = docFactory.newDocumentBuilder();
Document doc = docBuilder.parse(filepath);
Document doc = null;
if (file != null) {
doc = docBuilder.parse(file);
}
else {
doc = docBuilder.parse(filepath);
}

Node AutoDrive = doc.getFirstChild();
Element root = doc.getDocumentElement();
Expand All @@ -390,6 +426,7 @@ public void saveMap(String oldPath, String newPath) {

Node waypoints = doc.getElementsByTagName("waypoints").item(0);


// loop the staff child node
NodeList list = waypoints.getChildNodes();

Expand All @@ -411,8 +448,13 @@ public void saveMap(String oldPath, String newPath) {
String xPositions = "";
for (int j=0; j<mapPanel.roadMap.mapNodes.size(); j++) {
MapNode mapNode = mapPanel.roadMap.mapNodes.get(j);
if (isFourTimesMap) {
xPositions += mapNode.x * 2.0;
if (isFourTimesMap || isSixteenTimesMap) {
if (isFourTimesMap) {
xPositions += mapNode.x * 2.0;
}
else {
xPositions += mapNode.x * 4.0;
}
}
else {
xPositions += mapNode.x;
Expand Down Expand Up @@ -562,10 +604,29 @@ public void saveMap(String oldPath, String newPath) {
markerName.appendChild(doc.createTextNode(mapMarker.name));
newMapMarker.appendChild(markerName);

Element markerGroup = doc.createElement("group");
markerGroup.appendChild(doc.createTextNode(mapMarker.group));
newMapMarker.appendChild(markerGroup);

markerNode.appendChild(newMapMarker);
mapMarkerCount += 1;
}


Node mapNameNode = waypoints.getParentNode();
String newMapName = mapNameNode.getNodeValue();
if (newPath.contains("AutoDrive_") && newPath.contains("_config")) {
int newPathStartIndex = newPath.lastIndexOf("AutoDrive_");
newPathStartIndex += "AutoDrive_".length();
int newPathEndIndex = newPath.lastIndexOf("_config");
if (newPath.endsWith("_init_config")) {
newPathEndIndex = newPath.lastIndexOf("_init_config");
}
newMapName = newPath.substring(newPathStartIndex, newPathEndIndex);
System.out.println("Found new map name in: " + newPath + " : " + newMapName);
}
doc.renameNode(mapNameNode, null, newMapName);

// write the content into xml file
filepath = newPath;
TransformerFactory transformerFactory = TransformerFactory.newInstance();
Expand Down
8 changes: 5 additions & 3 deletions AutoDrive Course Editor/src/EditorListener.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
import java.awt.geom.Point2D;
import java.io.File;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.net.URLDecoder;

public class EditorListener implements ActionListener {

Expand All @@ -29,9 +31,6 @@ public void actionPerformed(ActionEvent e) {
editor.savedFile = fc.getSelectedFile();
editor.saveMap(editor.loadedFile.getAbsolutePath(), editor.savedFile.getAbsolutePath());
}
else {
this.editor.saveMap("C:\\Users\\Stephan\\Downloads\\AutoDrive_config.xml", "C:\\Users\\Stephan\\Downloads\\AutoDrive_config_new.xml");
}
}
if (e.getActionCommand() == "Move Nodes") {
this.editor.editorState = AutoDriveEditor.EDITORSTATE_MOVING;
Expand Down Expand Up @@ -87,5 +86,8 @@ public void actionPerformed(ActionEvent e) {
if (e.getActionCommand() == "FourTimesMap") {
editor.isFourTimesMap = editor.fourTimesMap.isSelected();
}
if (e.getActionCommand() == "SixteenTimesMap") {
editor.isSixteenTimesMap = editor.sixteenTimesMap.isSelected();
}
}
}
3 changes: 3 additions & 0 deletions AutoDrive Course Editor/src/META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Manifest-Version: 1.0
Main-Class: AutoDriveEditor

4 changes: 3 additions & 1 deletion AutoDrive Course Editor/src/MapMarker.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,12 @@ public class MapMarker implements Comparable {

public MapNode mapNode;
public String name;
public String group;

public MapMarker (MapNode mapNode, String name) {
public MapMarker (MapNode mapNode, String name, String group) {
this.name = name;
this.mapNode = mapNode;
this.group = group;
}


Expand Down
2 changes: 1 addition & 1 deletion AutoDrive Course Editor/src/MapPanel.java
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ public void createConnectionBetween(MapNode start, MapNode target) {

public void createDestinationAt(MapNode mapNode, String destinationName) {
if (mapNode != null && destinationName != null && destinationName.length() > 0) {
MapMarker mapMarker = new MapMarker(mapNode, destinationName);
MapMarker mapMarker = new MapMarker(mapNode, destinationName, "All");
this.roadMap.addMapMarker(mapMarker);
}
}
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
338 changes: 338 additions & 0 deletions FS19_AutoDrive/AutoDrive_Eiersholt_init_config.xml

Large diffs are not rendered by default.

Loading