Comments (8)
Okay 3. was easy by commenting out in resources/scripts/races.as
:
//this.cancelCurrentRace();
//this.message("You must not reset the vehicle during a race! Race aborted.", "stop.png");
from rigs-of-rods.
I have my own plans with the race system - see #3018. Since I wrote that code I changed my approach-instead of wrapping a 'missions.as' script around the races script, I'll extend the races script directly as it's already pretty extensible with custom events and callbacks. The plan to implement a datasheet and ability to load the races and hoc remains.
As for your points here I like the gameplay suggestions. Some things are more of a difficulty setting matter than permanent change matter but I like the direction.
For race/mission editing, we need a visual terrain editor first because all is based around eventboxes which are part of terrain. The 'races.as' as it is wants data entered directly in script but that effectively blocks it from being editable in editor. And people have severe issues editing script at all, making them rely on
https://docs.rigsofrods.org/terrain-creation/race-generator/. I want to use the mission datasheet for this.
For the UI part, your best bet are OGRE overlays combined with AngelScript bindings in branch #3030. I'm intensively working on that one, not on the overlays in particular but other OGRE bindings - scene graph, entities and Manual object.
MyGUI isn't really welcome in this project, it's a constant source of build and porting issues and I hate it's API, see #1333 for my rants. Our current HUD systém depends on it but I see the future in Overlays for HUD, imgui for UI and AngelScript for both.
Race times are stored via LocalStorageClass API which reads and writes .ini files. Docs: https://developer.rigsofrods.org/d1/d7f/class_script2_game_1_1_local_storage_class.html
Heh, sorry for dumping all this on you, I've been a solo dev for years and I'm kind of "in the middle of something" with every part of the game. If I may ask, consider contributing a doxy doc page on the race system. There is raw APIdoc https://developer.rigsofrods.org/da/d2a/group___script2_script.html but a more friendly intro page would help.
from rigs-of-rods.
Okay, thanks. I didn't know there are started improvements.
And I'll focus on ImGui not MyGui.
But does this interfere with my ideas? I'm not sure, I think these could be small things to do maybe (e.g. 7, 2, 5, 3, 1). IDK if I manage to implement any just curious.
I think I'll first finish (or do as much as possible) my SR3 Track Editor track export to RoR, as started in that topic.
from rigs-of-rods.
Hi, no it doesn't interfere, I'm just pointing you to existing docs and research for inspiration and friendly warning about things I intend to do.
For sure, I'd like you to implement those extensions alongside existing config: https://github.com/RigsOfRods/rigs-of-rods/blob/master/resources%2Fscripts%2Fraces.as#L134-L145
I'd also like to have a definition file format for the races. I already implemented one for the mission system but as I wrote above, I changed my mind, so I'm going to ( in coming days) create PR updating the race.as with the ability of loading race config from file. I'll pretty much reuse this code: https://github.com/ohlidalp/rigs-of-rods/blob/missionzip/resources%2Fscripts%2Fmissions.as#L34-L83 except I'll set race attrs directly instead of going via the Mission object. The code for checkpoints already uses the races-format: https://github.com/ohlidalp/rigs-of-rods/blob/missionzip/resources%2Fscripts%2Fmissions.as#L110-L151
PS I'm also definitely going to update races.as to use script events SE_EVENTBOX* instead of the legacy callback func passed to spawnObject()
, please read the intro of #3081
from rigs-of-rods.
* Where and how is best time saved (on disk) for races on maps?
Race times are stored in /cache/raceTimes.asdata
.
4. Damage mode off. IDK if possible? I would prefer to race without vehicle damage, or at least no driving damage to wheels. Or a less damage mode.
Technically possible if a script could override the deform and break values of all set_beam_defaults. May introduce instability with some vehicles though.
6. Somehow visualize on minimap (surveymap) where are different races, and their checkpoints. Or start places even in 3D? Took me a while to notice all of them on Auriga, even f1_testtrack, just from tiny 3d meshes at start places.
Minimap already displays races and active race checkpoints:
from rigs-of-rods.
Wow. How come I don't have it? Is it very new? I got 2024.02-dev build.
from rigs-of-rods.
Uncheck "Declutter overview map" in settings -> graphics. Perhaps that setting needs to be renamed..?
from rigs-of-rods.
Ah thanks, that did it.
from rigs-of-rods.
Related Issues (20)
- Add input sources for cruise control for the dashboard system HOT 3
- Rigs of rods repository HOT 16
- in-game repository is not working HOT 5
- Keyboard steering sensitivity HOT 11
- Some cars can't start race HOT 4
- Tuning system glitches and shortcomings HOT 7
- Lights=None in RoR.cfg crash air vehicles loading HOT 3
- More grass layers do grass blades in same places. HOT 13
- Favorite vehicles/terrains HOT 4
- Add release on flathub.org (flatpak) HOT 8
- Fog distance cuts off clouds far HOT 10
- Waves on water is broken HOT 9
- Display Scaling is COMPLETLY BROKEN. HOT 29
- setEventSimulatedValue does not work in multiplayer while server bot is present
- Texture conflicts between mods HOT 2
- Alternative mods folder location HOT 5
- Videocamera Mirrors Flipped HOT 2
- Ties fail to appear if invisible hooks are present
- [UI] Improve In-Game Vehicle Sorting Categories and Accessability for New Players HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rigs-of-rods.