Scripting branch testing
Scripting branch testing
As some of you have no doubt noticed, there is a scripting branch for ZDoom. At the moment, there aren't any useable new features. On the other hand, there have been several significant under-the-hood changes. Right now I would like to verify that it behaves identically to the version in trunk. I am particularly interested in its behavior with DECORATE-heavy wads, since action functions are now executed with a general purpose VM. At the moment, it writes a disasm.txt file showing the disassembly for all action functions, if anyone is interested in what this looks like.
So if you feel like trying it out and helping me out, please download and leave feedback here.
So if you feel like trying it out and helping me out, please download and leave feedback here.
- Attachments
-
zdoomtest.7z
- Based on revision 3925
- (1.66 MiB) Downloaded 146 times
Last edited by randi on Mon Oct 29, 2012 8:15 pm, edited 4 times in total.
Reason: Upload #5
Reason: Upload #5
Re: Scripting branch testing
It crashes when starting a new game with Zen Dynamics (zendyn_x.wad).
- Attachments
-
CrashReport-scripting-zendyn_x.zip
- Zdoom Scripting Branch crashlog (zendyn_x.wad)
- (17.98 KiB) Downloaded 92 times
Last edited by edward850 on Thu Oct 25, 2012 11:26 pm, edited 1 time in total.
- Kinsie
- Posts: 7402
- Joined: Fri Oct 22, 2004 9:22 am
- Graphics Processor: nVidia with Vulkan support
- Location: MAP33
- Contact:
Re: Scripting branch testing
Found a bug! Not sure if it's on my end or yours. From the Reelism DECORATE...
Spoiler:When killed, this actor should bounce up into the air, spewing explosions, then stop and get deleted when it hits the ground. In this build, it never gets deleted, it just sits there creating explosions forever.
- Major Cooke
- Posts: 8208
- Joined: Sun Jan 28, 2007 3:55 pm
- Preferred Pronouns: He/Him
- Operating System Version (Optional): Windows 10
- Graphics Processor: nVidia with Vulkan support
- Location: GZBoomer Town
- Contact:
Re: Scripting branch testing
I could give this a shot with AEons of Death. That is highly action function extensive to the extreme... Will give it a boot-up soon.
Re: Scripting branch testing
AEons of death probably would be the "acid test" for this right enough.
- Major Cooke
- Posts: 8208
- Joined: Sun Jan 28, 2007 3:55 pm
- Preferred Pronouns: He/Him
- Operating System Version (Optional): Windows 10
- Graphics Processor: nVidia with Vulkan support
- Location: GZBoomer Town
- Contact:
Re: Scripting branch testing
Oooh yeah, especially all the special effects I've coded for it!
-
- Posts: 1774
- Joined: Sat Oct 17, 2009 9:40 am
Re: Scripting branch testing
yeah and how much time is required to track down the real problem?
btw, something related to zscript branch: does the compilation with linux require some more packages than the ones listed in the wiki? Because, as I said in the 'Zdoom in Linux' thread, I was not able to compile it from scratch, with the same settings as the normal compilation...
btw, something related to zscript branch: does the compilation with linux require some more packages than the ones listed in the wiki? Because, as I said in the 'Zdoom in Linux' thread, I was not able to compile it from scratch, with the same settings as the normal compilation...
Re: Scripting branch testing
Updated first post with a new build that addresses the problems pointed out so far.
AEons of Death runs, but I'm not familiar enough with it to know if it's working correctly or not.
AEons of Death runs, but I'm not familiar enough with it to know if it's working correctly or not.
It shouldn't. I built it successfully with MinGW a few days ago, and that uses the same build system as for Linux.Edward-san wrote:btw, something related to zscript branch: does the compilation with linux require some more packages than the ones listed in the wiki?
Re: Scripting branch testing
It appears to be the exact same build from yesterday.randi wrote:Updated first post with a new build that addresses the problems pointed out so far.
-
-
- Posts: 3202
- Joined: Wed Nov 24, 2004 12:59 pm
- Graphics Processor: ATI/AMD with Vulkan/Metal Support
- Contact:
Re: Scripting branch testing
You forgot to make ZDoom depend on zcc-parse.c:
Edit: And I guess while I'm at it here are the zscript related warnings:
Code: Select all
Index: src/CMakeLists.txt
===================================================================
--- src/CMakeLists.txt (revision 3910)
+++ src/CMakeLists.txt (working copy)
@@ -914,6 +914,7 @@
)
set_source_files_properties( xlat/parse_xlat.cpp PROPERTIES OBJECT_DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/xlat_parser.c" )
+set_source_files_properties( zscript/zcc_parser.cpp PROPERTIES OBJECT_DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/zcc-parse.c" )
set_source_files_properties( sc_man.cpp PROPERTIES OBJECT_DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/sc_man_scanner.h" )
if(${CMAKE_SYSTEM_NAME} STREQUAL "SunOS")
Code: Select all
[ 97%] Building CXX object src/CMakeFiles/zdoom.dir/zscript/vmexec.o
In file included from /home/blzut3/Code/ZDoom/branches/scripting/src/zscript/vmexec.cpp:88:0:
/home/blzut3/Code/ZDoom/branches/scripting/src/zscript/vmexec.h: In static member function ‘static int VMExec_Checked::Exec(VMFrameStack*, const VMOP*, VMReturn*, int)’:
/home/blzut3/Code/ZDoom/branches/scripting/src/zscript/vmexec.h:721:27: warning: comparison is always true due to limited range of data type [-Wtype-limits]
/home/blzut3/Code/ZDoom/branches/scripting/src/zscript/vmexec.h:734:27: warning: comparison is always true due to limited range of data type [-Wtype-limits]
/home/blzut3/Code/ZDoom/branches/scripting/src/zscript/vmexec.h:747:27: warning: comparison is always true due to limited range of data type [-Wtype-limits]
Re: Scripting branch testing
Got the new one up for reals this time.edward850 wrote:It appears to be the exact same build from yesterday.
Re: Scripting branch testing
Some issues with Zen Dynamics:
- Ammo counts aren't shown in any hud, and weapons you have aren't shown in the alt-hud.
- It appears the grenades aren't replacing properly. All grenade pickups are the Zdoom.pk3 grenades.
-
- Posts: 1774
- Joined: Sat Oct 17, 2009 9:40 am
Re: Scripting branch testing
Ugh, I didn't search hard enough. That change worked.Blzut3 wrote:You forgot to make ZDoom depend on zcc-parse.c:
Still talking about gcc warnings, I get constantly these warnings each .o file:
Code: Select all
/home/edward-san/zdoom/branch/scripting/src/tarray.h: In member function ‘hash_t THashTraits<float>::Hash(float)’:
/home/edward-san/zdoom/branch/scripting/src/tarray.h:453:50: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
/home/edward-san/zdoom/branch/scripting/src/tarray.h: In member function ‘hash_t THashTraits<double>::Hash(double)’:
/home/edward-san/zdoom/branch/scripting/src/tarray.h:460:53: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
Last edited by Edward-san on Fri Oct 26, 2012 7:35 pm, edited 1 time in total.
Re: Scripting branch testing
Randy's opening paragraph wasn't that TL;DR...
randi wrote:At the moment, it writes a disasm.txt file showing the disassembly for all action functions, if anyone is interested in what this looks like.
-
- Posts: 1774
- Joined: Sat Oct 17, 2009 9:40 am
Re: Scripting branch testing
I noticed that A_Explode doesn't do the splash damage. You can verify by using a normal rocket launcher against the zombies in map01. Also, if you make explode the barrels they won't cause any harm to the player.