Re: Fog_ParseServerMessage
#3827 posted by
szo on 2022/06/02 13:41:30
I ended up applying this patch to quakespasm, which will be included in the upcoming 0.94.5 version:
https://github.com/sezero/quakespasm/commit/284b182a1cf164538d6850fd751c1ed361093a74
#3828 posted by
mh on 2022/06/02 14:32:09
I personally prefer using functions rather than macros wherever possible, for this specific reason. Any decent compiler will be inlining small functions such as this anyway.
Ability To Switch Mod From The App
#3829 posted by
Barnak on 2022/06/02 15:07:30
I would like to have the ability to switch the mod directly from within QS, as in the Spiked version (there's a menu option for this). This feature is great. Why it isn't implemented in the regular QS?
#3828
#3830 posted by
szo on 2022/06/02 15:29:46
vkquake now uses a c11 inline solution for it.
#3229
#3831 posted by
szo on 2022/06/02 15:30:48
You have the 'game' console command
Szo
#3832 posted by
Barnak on 2022/06/02 15:48:38
The menu option is much more easy and intuitive than a console command, especially if we don't know the exact name of the mod that we would like to activate. Having that menu option is highly desirable, even if there's a console command.
@szo:
#3833 posted by
metlslime on 2022/06/02 18:57:05
That just looks like a dumb mistake, really.
The 3 SVCs svc_fog, svc_bf, svc_skybox were added very early in fitzquake and never fully tested (it was before I really understood that we would need builtins and extension discovery to really make new svcs make sense for modders.) svc_bf especially was borne of a purist idea that "stuffcmd is bad" without recognizing the more important fact of "a bunch of existing engines and mods use this thing, it's not going away just because I add some new svc which offers nothing new to the end user."
Later, when I added all the increased limits and made protocol 666, which I did actually test thoroughly, those untested SVCs just kind of snuck in, I didn't really intend them to be part of the official protocol (they are not included in the documentation I added to the quake wiki, for example.) But clearly they exist and they're in a bunch of forks now. So it's good to fix them?
#3833
#3834 posted by
szo on 2022/06/02 19:04:13
I fixed svc_fog, even though (and luckily) there looks to be no users of it in the wild.
Do any of the others need any fixing? (I had run into the svc_fog issue while auditing function call uses in clamp, min and max macros.)
@metlslime
#3835 posted by
szo on 2022/06/02 19:16:37
Re:Barnak: Games Command
Usually you can use the "games" command to have the console list all the directories you have on your Quake folder.
Quakespasm 0.94.5 Released
#3837 posted by
szo on 2022/06/14 16:54:28
Version 0.94.5 of QuakeSpasm is released.
Downloads:
https://sourceforge.net/projects/quakespasm/files/
http://quakespasm.sourceforge.net/download.htm
Changes since the previous version:
https://sourceforge.net/p/quakespasm/news/2022/06/quakespasm-0945/
- Compatibility with new SDL2 versioning scheme.
- Revised min/max/clamp macros' usage.
- Fixed a potential undefined behavior in R_DrawAliasModel.
- Fixed parsing of the time argument of svc_fog server message. (it
has been broken for more than 20 years and has never seem to have
been used.)
- Other small improvements elsewhere in the code.
- Backported a few fixes to the bundled SDL2-2.0.22 version.
Re:Mopeybloke And Szo (mods Menu)
#3838 posted by
Barnak on 2022/06/14 20:34:43
I still believe that it would be a very nice thing to have the same *mods menu* on the main interface as in the Spiked version. This option is *very* intuitive/direct to use (we don't have to remember any console commands, let alone be aware of their existence) and it makes switching mode extremely fast (at least in the Spiked version)! Personaly, I use it alot in QuakeSpasm-spike.
Agree With Barnak
The mod menu in Ironwail is something I use a lot when creating my videos. Works very well in that version.
Quakespasm 0.94.6 Released
#3840 posted by
szo on 2022/07/04 01:08:02
Version 0.94.6 of QuakeSpasm is released.
Downloads:
https://sourceforge.net/projects/quakespasm/files/
http://quakespasm.sourceforge.net/download.htm
Changes since the previous version:
- Server protocol size check fixes for sounds and particles.
- An invalid memory access fix in the jpg screenshot writer.
- Basic dependency tracking in Makefiles.
- Backported a few fixes to the bundled SDL2-2.0.22 version.
- Minor build fix for C++ compilers.
- Other small improvements elsewhere in the code.
@szo
I was just going to post a bug report but maybe this version will fix my issue. 0.94.5 would crash to the desktop if a bad server message or similar error came up.
More Info On #3842
This code was causing an error in my devkit progs_dump:
if (self.owner.snd_hit)
{
sound (self, CHAN_WEAPON, self.owner.snd_hit, 1, ATTN_STATIC);
WriteByte(MSG_BROADCAST, TE_GUNSHOT);
}
else
WriteByte (MSG_BROADCAST, TE_SUPERSPIKE);
This would crash 0.94.5 directly to the desktop. When I reverted back to 0.94.3 it would dump me to the console and I was able to see the error. Something to the effect of "Bad Server Mssg"
We fixed the code so I can't replicate it 100%.
One More Test
It looks like 0.94.6 will display an error but then go to the desktop - I tried a bad model name this time. 0.94.3 would remain at the console which is a little more helpful.
Dumptruck_ds:
#3845 posted by
szo on 2022/07/12 01:30:53
Can you give me such a bad progs.dat so I can test this and fix the issues?
#3846 posted by
szo on 2022/07/12 02:07:36
I reproduced your issue in a different way: the issue seems to be not in the code but with the build. Working on it..
#3842, Dumptruck_ds:
#3847 posted by
szo on 2022/07/12 03:50:05
Rebuilt and re-uploaded the v0.94.6 windows x64 version, which should fix the issue:
https://sourceforge.net/projects/quakespasm/files/Windows/quakespasm-0.94.6_win64.zip/download
(Zip file size is 2,223,408 bytes.)
The 32 bit version doesn't seem to have the issue.
Wow
This is super helpful thank you.
Map Elements In MP1 Pre-activated
#3850 posted by
Radial on 2022/07/14 03:33:13
Hey, having an issue with quakespasm (specifically quakespasm-spiked) where several map elements get activated as soon as the map starts, such as:
-Door at start of start map (not the one at the start of hip1m1)
-The sequence that allows access to gold key, including shooting the rocket into a pipe and shooting another set of pipes.
If there is a better place i should go to try and troubleshoot this issue and/or you need a video to demonstrate, please let me know.
FTE Discord
The FTE Discord may be the best place since Spike is there. Not sure how often he checks in here. Especially lately. Sorry I do not have a link.
My advice is to not use QSS if you don't have to.