Possibly for QSB - Identifying mod dependencies
Moderator: InsideQC Admins
23 posts
• Page 2 of 2 • 1, 2
frag.machine wrote:The engine thing wouldn't prevent one running the mod in a non-listed engine, I imagined something in the line of a warning stating "this mod is guaranteed by the author to run in the following engines" and that's it.
No, I understand what you meant, that's cool.
Where I'm coming from is the perspective of a player who's not so familiar with stuff. This hypothetical person might be using TurboUtterMegaNutterBastardQuake version 13.666 which won't be on the list of engines (99% of which will be Enhanced GL or Fitz) and might therefore get the idea that TUMNBQ can't run the mod.
We had the power, we had the space, we had a sense of time and place
We knew the words, we knew the score, we knew what we were fighting for
We knew the words, we knew the score, we knew what we were fighting for
-

mh - Posts: 2292
- Joined: Sat Jan 12, 2008 1:38 am
player who are not familiar with stuff are unlikely to peek on configuration files unless something is not working, you know - and sometimes, not even on this case.
But it's ok, we are just throwing ideas around here.
I know FrikaC made a cgi-bin version of the quakec interpreter once and wrote part of his website in QuakeC
(LordHavoc)
-

frag.machine - Posts: 2090
- Joined: Sat Nov 25, 2006 1:49 pm
Too bad we can't statically link mods.

Ken Thompson wrote:One of my most productive days was throwing away 1000 lines of code.
Get off my lawn!
-

dreadlorde - Posts: 268
- Joined: Tue Nov 24, 2009 2:20 am
dreadlorde wrote:Too bad we can't statically link mods.
You can, on these that are GPL in all his files. But is something that work differently in Linux and Windows, seems, as a windows exe somehow has teh limitation that can't open itself, so can't read from itself the pack.
- Teiman
- Posts: 309
- Joined: Sun Jun 03, 2007 9:39 am
You can embed it as a binary resource though; only needs 4 lines of code to load it:
Of course platform-independent code would be preferable, but sometimes you just gotta roll with what works.
- Code: Select all
int Sys_LoadResourceData (int resourceid, void **resbuf)
{
HRSRC hResInfo = FindResource (NULL, MAKEINTRESOURCE (resourceid), RT_RCDATA);
HGLOBAL hResData = LoadResource (NULL, hResInfo);
resbuf[0] = (byte *) LockResource (hResData);
return SizeofResource (NULL, hResInfo);
}
Of course platform-independent code would be preferable, but sometimes you just gotta roll with what works.
We had the power, we had the space, we had a sense of time and place
We knew the words, we knew the score, we knew what we were fighting for
We knew the words, we knew the score, we knew what we were fighting for
-

mh - Posts: 2292
- Joined: Sat Jan 12, 2008 1:38 am
So, regarding the mod.dep... Are you going to implement it or will wait for DN4, I mean, QSB 1.0 to arrive ?
I know FrikaC made a cgi-bin version of the quakec interpreter once and wrote part of his website in QuakeC
(LordHavoc)
-

frag.machine - Posts: 2090
- Joined: Sat Nov 25, 2006 1:49 pm
Most PSP Quake engines already have something that resembles this.
It is differn't but it could be adapted.
Psp Quake cant run a batch file to use command line parameters like windows can.
To fix this the engine calls for a file called quake.cmdline and uses that nstead of a batch file.
It could be adapted.
Quake.cmdline can be opened in notepad as well. Its essentially justy a txt fiel with a differn't file extension.
This way would be OS neutral.
It is differn't but it could be adapted.
Psp Quake cant run a batch file to use command line parameters like windows can.
To fix this the engine calls for a file called quake.cmdline and uses that nstead of a batch file.
It could be adapted.
Quake.cmdline can be opened in notepad as well. Its essentially justy a txt fiel with a differn't file extension.
This way would be OS neutral.
- Team Xlink
- Posts: 368
- Joined: Thu Jun 25, 2009 4:45 am
- Location: Michigan
Re: Possibly for QSB - Identifying mod dependencies
mh wrote:I'm posting this here as it seems most appropriate for Engine Programming, although I'm going to put a link to it in the main QSB thread.
How do we go about identifying mod dependencies in a nice clean and compatible fashion? I'm talking about a mod that requires 1 or more of Hipnotic, Rogue, Nehahra or Quoth to run. Try to run without them and you'll most likely crash.
There are also mods that actually crash if one of these is used. I've seen ARWOP for example crash if Quoth is used with it.
Currently the only thing we have is a readme.txt, but people in general don't read documentation. There must be a better way.
This needs to be in the engine; it can't be QC because not every mod has a progs.dat: it's possible for a mod to require the Hipnotic progs.dat but not provide one of it's own, for example.
Any thoughts?
I was thinking at first you meant engine features required by the mod and how the engine could determine if said requirements are available, yet you are also asking to encompass media from other mods, that are also depended apon. Sheesh!
mod.req:
%%rouge //tells the engine we need this mission pack to proceed
%%mymod //tells the engine to double check to use this gamedir for the progs.dat (etc.)
##max_edicts 1024
##max_dynamic_lights 1024
##max_temp_entities 1024
^^movetype_follow //define engine extension requirements (via check extension ?)
I dunno, i'm just rambling at the top of my head.
- r00k
- Posts: 1110
- Joined: Sat Nov 13, 2004 10:39 pm
23 posts
• Page 2 of 2 • 1, 2
Who is online
Users browsing this forum: No registered users and 1 guest