Commit Graph

2355 Commits

Author SHA1 Message Date
Wls50
04eff45b5d remove duplicate user_data vector from world_vertex
update max. number of vertex attributes
to avoid user data getting "reused" across mesh draws
2024-07-06 20:25:53 +02:00
Wls50
18b18eed08 fix e3d serialization issues:
failure to check for user data in submodel hierarchy
after creating gfx bank;
failure to increase chunk size when user data is present
2024-07-06 19:59:36 +02:00
Wls50
561b84a329 move vertex user data to a separate array
update vao creation to support optional vertex data
update mesh serialization to account for new user data location
change t3d spec: userdata:{float|uint|int} to userdata:bool
2024-07-06 16:04:35 +02:00
Wls50
dba0a035fd add user data vector to basic_vertex
update t3d, e3d & sbt specs accordingly
update node model to shape conversion to support indexed meshes
2024-06-30 16:13:19 +02:00
Ryba04
633be40ef4 Merge pull request #57 from jakubg1/second
Launcher bugfixes and pantograph selector improvements
2024-04-25 18:35:30 +02:00
jakubg1
13d9a91632 Improve pantograph selector
- A new parameter has been added to .fiz file format, in the Switches: section:
  - PantographPresetDefault [0] - The 0-based index of a pantograph preset that should be chosen upon the vehicle creation. 0 by default mimicks the current behavior.

- Fixed the selected pantograph configuration not being respected until the configuration has been changed.
2024-03-13 03:25:19 +01:00
jakubg1
c9ccdda806 Fix loading mini textures with periods
Some textures, like textures/mini/9-107.13, had incorrectly part of their name removed (truncated to textures/mini/9-107) and thus were failing to load. The workaround was to add an explicit ".bmp" extension for that to be removed instead.
2024-03-03 04:04:42 +01:00
jakubg1
4d00977fca Update STBI from v2.22 to v2.29
This fixes crashes when trying to load corrupted .bmp files.
2024-03-03 03:48:36 +01:00
jakubg1
84980a4484 Improve the keymapper
The keymapper, available as one of the options in the starting menu when the EXE is run without a scenery specified, has undergone a few changes:
- Key descriptions are now parsed the way Starter does and are displayed in the window. They are also no longer consumed when saving to a file.
- Unbound keys are now also displayed as well. Not all of them though; some entries won't exist if they are not specified in the eu07_input-keyboard.ini file.
- You can now unbind a key by pressing F10.

The Parser has got a new boolean option: `skipComments`, true by default to leave current behavior unchanged. When set to false, comments will be parsed as ordinary tokens.
2024-03-03 03:00:47 +01:00
milek7
9259708d4c radio volume slider 2023-08-08 16:05:25 +02:00
milek7
27e03ab9e8 workaround, disable brake test for vehicles with FVel6 2023-05-28 23:23:07 +02:00
milek7
b01c19308c fix scenery_list crashes when missing vehicles 2023-05-28 21:25:05 +02:00
milek7
54e5e186a3 switch debugtoggle and pausetoggle to release, and logic fixes 2023-05-28 21:07:38 +02:00
milek7
3df159024b avoid gcc warning in uilayer.cpp 2023-05-28 20:12:21 +02:00
milek7
2b65410285 security system logic fixes 2023-05-28 18:39:41 +02:00
Daniel Tian
eaab79703f Allow escape key to close pause menu 2023-05-26 19:26:44 +02:00
Daniel Tian
71ff6a60d0 Make right mouse down + scroll wheel adjust FOV instead of master controller 2023-05-26 19:16:51 +02:00
Daniel Tian
99330e3921 Fix loading screen background aspect ratio on ultrawide displays 2023-05-26 19:16:09 +02:00
Daniel Tian
d710f42f0c Limit camera pitch movement to +/- 90° 2023-05-26 19:12:17 +02:00
milek7
c536bc657d maybe update macos CI to 11 2023-05-26 18:05:37 +02:00
milek7
a7e4a3a598 maybe update macos CI to 11 2023-05-26 18:00:27 +02:00
milek7
5ca133162d update CI to ubuntu 20.04 2023-05-26 17:58:26 +02:00
milek7
8ec7dd7731 maybe fix crash in camera update 2023-05-26 17:33:29 +02:00
milek7
c0260bf562 maybe fix crash in CheckVehicles 2023-05-26 17:28:45 +02:00
milek7
eaaecd36cc disable sun/moon rendering on ATI cards in legacy renderer, prone to crashes 2023-05-26 17:14:42 +02:00
milek7
0ba7a318aa fix crash when alGetError fails 2023-05-26 16:57:05 +02:00
milek7
4ea2046066 fix double-free when removing nonplayer TTrain 2023-05-26 16:51:51 +02:00
Marcin Nowak
9bb85ba554 (separate shp reset) add handling of SeparateAcknowledge flag 2022-11-05 17:03:23 +01:00
Marcin Nowak
556af193ac (uart) handle none arg in uartfeature; use new syntax in config debug output 2022-11-05 16:18:39 +01:00
Marcin Nowak
9b1e0d5090 (uart) expose radio message indicator state 2022-11-05 05:00:39 +01:00
Marcin Nowak
412800ea23 (uart, commands) add possibility to set radio channel and volume via uart 2022-11-05 05:00:39 +01:00
Marcin Nowak
041ebcf0b9 (config) new uartfeature syntax impl. proposal 2022-11-05 05:00:39 +01:00
Królik Uszasty
ebd3607e4b Added Pmax curve for EIM, e.g. EN57AL 2022-11-04 23:50:56 +01:00
Królik Uszasty
bdfc5556df Added pressure of spring brake for python 2022-11-04 23:50:56 +01:00
Królik Uszasty
d191d9e5e7 Random includes only for mmd files 2022-11-04 23:50:56 +01:00
Królik Uszasty
027f7c69e9 Random includes 2022-11-04 23:50:56 +01:00
Królik Uszasty
4d4df40baf Slower percentage speed for TRAXX 2022-11-04 23:50:56 +01:00
Królik Uszasty
a6ba375e7a Fix for switching off batteries with no active cabin and raising pantographs when deactivating cabin 2022-11-04 23:50:56 +01:00
Królik Uszasty
7b40fe9a72 Fixed shp activation when activating a cabin 2022-11-04 23:50:56 +01:00
Królik Uszasty
9caec803e7 More features for diesel engines 2022-11-04 23:50:56 +01:00
Królik Uszasty
9ccab22cb7 Small fixes for sounds 2022-11-04 23:50:56 +01:00
Królik Uszasty
09a060fa27 Slider for drawing distance for very experimental sceneries 2022-11-04 23:50:56 +01:00
Milek7
ccf537e70f Merge pull request #23 from marcinn/feature/add-missing-enable-disable-commands
Add useful enable and disable commands
2022-09-30 03:31:57 +02:00
Marcin Nowak
3bd90ec5b2 (commands) add dashboardlightenable and dashboardlightdisable commands 2022-09-29 00:57:49 +02:00
Marcin Nowak
1d34194453 (commands) add timetablelightenable and timetablelightdisable commands 2022-09-29 00:57:49 +02:00
Marcin Nowak
57dbcf79e1 (commands) add radiostopenable and radiostopdisable commands 2022-09-29 00:57:49 +02:00
maciejbaur
7880063f5c (commands) add radioenable and radiodisable commands 2022-09-29 00:57:46 +02:00
maciejbaur
31fd1dc56f (commands) Add alarmchainenable and alarmchaindisable commands 2022-09-29 00:33:00 +02:00
Marcin Nowak
cba929e61c (commands) add enable/disable commands for rear lights and redmarks 2022-09-29 00:32:55 +02:00
Milek7
08427d0edf Merge pull request #20 from xwizard
Fixes OpenAL crash and adds extra OpenAL error logging.
Gitignore entries for vscode
Removes unnecessary assert() and caps "sg" at 1.0
2022-07-15 19:20:51 +02:00