This is the first release of OpenBOR 4.0, representing over five years and 1,000+ updates to the source code. In order to avoid yet more delays and keep the promise I made to release before year end, there are still elements in progress that I will be finishing up in the coming weeks.
However, you will find a wealth of long awaited new goodies to play with, along with documentation, and an internal codebase and development strategy that enables fast updates as we move forward. So much I had...
Happy new year!! Congratulations my friend, I saw how hard you worked during all these years and now the engine it's fully working, it's a dream turning into realityHappy new year!
debug:nativeWidth, nativeHeight, bpp, Hz 1920, 1080, 24, 60
OpenBoR v3.0 Build 7530 (commit hash: 9695908), Compile Date: Dec 31 2023
Can't find openbor constant 'PLAYER_MIN_Z'
Script compile error in 'data/scripts/drago.c': openborconstant line 727, column 16
Script error: failed to import 'data/scripts/drago.c': failed to compile
********** An Error Occurred **********
* Shutting Down *
Yeah, a lot of things are different now. You will need to update all your scripts to make it compatibleThis going to be problem for me
Just want to test it
C:debug:nativeWidth, nativeHeight, bpp, Hz 1920, 1080, 24, 60 OpenBoR v3.0 Build 7530 (commit hash: 9695908), Compile Date: Dec 31 2023
C:Can't find openbor constant 'PLAYER_MIN_Z' Script compile error in 'data/scripts/drago.c': openborconstant line 727, column 16 Script error: failed to import 'data/scripts/drago.c': failed to compile ********** An Error Occurred ********** * Shutting Down *
This going to be problem for me
openborvariant("player_min_z")
. I documented the system variables too: system variables.Yay it's working, so it's called panel_z now
btw screenshot with Space not responding in the game, menu is fine
Minor update to fix some build meta and copyright dates. See previous update entry for functionality changes.
Cool. How do you get that to work? Do you use it like player_min_z? I'm used to player_min_z more than panel_z. panel_z is new to me.@DCurrent
Yay it's working, so it's called panel_z now
Thank you I'll test it now
View attachment 6448
btw screenshot with Space not responding in the game, menu is fine
Total Ram: 4171603968 Bytes ( 3978 MB )
Free Ram: 943714304 Bytes ( 899 MB )
Used Ram: 6615040 Bytes ( 6 MB )
debug:nativeWidth, nativeHeight, bpp, Hz 1366, 768, 24, 60
OpenBoR v3.0 Build 7530 (commit hash: 9695908), Compile Date: Dec 31 2023
Game Selected: ./Paks/My Mod.pak
FileCaching System Init....... Disabled
Initializing video............
Reading video settings from 'data/video.txt'.
Colordepth is depreciated. All modules are displayed with a 32bit color screen.
Initialized video............ 320x240 (Mode: 0)
Timer init................... Done!
Initialize Sound.............
Loading sprites.............. Done!
Loading level order..........
Command 'versusdamage' not understood in level order!
Command 'versusdamage' not understood in level order!
Command 'versusdamage' not understood in level order!
Command 'versusdamage' not understood in level order!
Command 'versusdamage' not understood in level order!
Command 'versusdamage' not understood in level order!
Command 'versusdamage' not understood in level order!
Command 'versusdamage' not understood in level order!
Command 'versusdamage' not understood in level order!
Command 'versusdamage' not understood in level order!
Command 'versusdamage' not understood in level order!
Command 'versusdamage' not understood in level order!
Command 'versusdamage' not understood in level order!
Command 'versusdamage' not understood in level order!
Command 'versusdamage' not understood in level order!
Done!
Loading model constants...... Done!
Loading script settings...... Done!
Loading scripts.............. Can't find openbor constant 'SAMPLE_BEEP2'
Script compile error in 'update': openborconstant line 95, column 31
********** An Error Occurred **********
* Shutting Down *
Can't compile script 'update'
Total Ram: 4171603968 Bytes ( 3978 MB )
Free Ram: 976789504 Bytes ( 931 MB )
Used Ram: 34488320 Bytes ( 32 MB )
Release level data...........
Done!
Release graphics data........ Done!
Release game data............
Release game data............ Done!
Release timer................ Done!
Release input hardware....... Done!
Release sound system......... Done!
Release FileCaching System... Done!
**************** Done *****************
Can't compile script 'update'
Mine is in this script that is causing the errorHow do you get that to work? Do you use it like player_min_z?
panel_z | Integer | X | Base layer position of main panel. Internally, it is a calculated offset from player_min_z. |
Save screenshot rarely respondingI have no idea what you mean, sorry.
For me the screenshot is working fine, maybe it can be due to an old "saves" folder. I suggest erasing and letting the engine create a fresh one.Save screenshot rarely responding
In the SORX I'm using it asI read the description and I just change every minZ to panel_z
openborvariant("player_min_z");
I read the description and I just change every minZ to panel_z
I tried this out, but I got this.
int sample_beep_id = openborvariant("global_sample_beat");
The native sound effects now work this way, here's an example:Cool. How do you get that to work? Do you use it like player_min_z? I'm used to player_min_z more than panel_z. panel_z is new to me.
I tried this out, but I got this.
Code:Total Ram: 4171603968 Bytes ( 3978 MB ) Free Ram: 943714304 Bytes ( 899 MB ) Used Ram: 6615040 Bytes ( 6 MB ) debug:nativeWidth, nativeHeight, bpp, Hz 1366, 768, 24, 60 OpenBoR v3.0 Build 7530 (commit hash: 9695908), Compile Date: Dec 31 2023 Game Selected: ./Paks/My Mod.pak FileCaching System Init....... Disabled Initializing video............ Reading video settings from 'data/video.txt'. Colordepth is depreciated. All modules are displayed with a 32bit color screen. Initialized video............ 320x240 (Mode: 0) Timer init................... Done! Initialize Sound............. Loading sprites.............. Done! Loading level order.......... Command 'versusdamage' not understood in level order! Command 'versusdamage' not understood in level order! Command 'versusdamage' not understood in level order! Command 'versusdamage' not understood in level order! Command 'versusdamage' not understood in level order! Command 'versusdamage' not understood in level order! Command 'versusdamage' not understood in level order! Command 'versusdamage' not understood in level order! Command 'versusdamage' not understood in level order! Command 'versusdamage' not understood in level order! Command 'versusdamage' not understood in level order! Command 'versusdamage' not understood in level order! Command 'versusdamage' not understood in level order! Command 'versusdamage' not understood in level order! Command 'versusdamage' not understood in level order! Done! Loading model constants...... Done! Loading script settings...... Done! Loading scripts.............. Can't find openbor constant 'SAMPLE_BEEP2' Script compile error in 'update': openborconstant line 95, column 31 ********** An Error Occurred ********** * Shutting Down * Can't compile script 'update' Total Ram: 4171603968 Bytes ( 3978 MB ) Free Ram: 976789504 Bytes ( 931 MB ) Used Ram: 34488320 Bytes ( 32 MB ) Release level data........... Done! Release graphics data........ Done! Release game data............ Release game data............ Done! Release timer................ Done! Release input hardware....... Done! Release sound system......... Done! Release FileCaching System... Done! **************** Done ***************** Can't compile script 'update'
playsample(openborvariant("global_sample_beep_2"), 0, 100, 100, 100, 0);
global_sample_beat
global_sample_beep
global_sample_beep_2
global_sample_bike
global_sample_block
global_sample_fall
global_sample_get
global_sample_get_2
global_sample_go
global_sample_indirect
global_sample_jump
global_sample_one_up
global_sample_pause
global_sample_punch
global_sample_time_over
Is there a list we can see of those old constants that were changed?Ugh, the first growing pain (and I'm sure just one of many). That's actually a bugfix. There are about 10 or so "constants" I discovered someone added (not sure who.. could have been me) that aren't actually constants at all. PLAYER_MIN_Z is one of them. They are really system variables that can and do change at runtime. I've moved them accordingly and where possible given write access.