Inside3D!
     

Load more than 1 add-on

 
Post new topic   Reply to topic    Inside3d Forums Forum Index -> General Discussion
View previous topic :: View next topic  
Author Message
Mathuzzz



Joined: 09 May 2010
Posts: 14

PostPosted: Wed May 19, 2010 3:07 pm    Post subject: Load more than 1 add-on Reply with quote

Is there any way to load more add-ons? The main add-on I use is nehahra one, but would like to use some rogue monsters.
Back to top
View user's profile Send private message
Spirit



Joined: 20 Nov 2004
Posts: 476

PostPosted: Wed May 19, 2010 3:32 pm    Post subject: Reply with quote

Nope. Quake mods are monolithic code-wise, you cannot load more than one.
_________________
Quake Maps
Back to top
View user's profile Send private message Visit poster's website
Orion



Joined: 12 Jan 2007
Posts: 413
Location: Brazil

PostPosted: Wed May 19, 2010 4:02 pm    Post subject: Reply with quote

Like Spirit said, there's no way to load 2 mods at the same time.
But in a simpler way, you'll need to find nehahra source code, rogue source code, and put the rogue monsters .qc files into the nehahra source code, modify progs.src properly and then compile.
_________________
There's no signature here. Stop looking for one.
Back to top
View user's profile Send private message
Sajt



Joined: 16 Oct 2004
Posts: 1026

PostPosted: Wed May 19, 2010 4:38 pm    Post subject: Reply with quote

DarkPlaces can layer any number of gamedirs with consecutive -gamedir parameters in the command-line. But it will only use the topmost progs.dat, it can't magically "combine" them.
_________________
F. A. Špork, an enlightened nobleman and a great patron of art, had a stately Baroque spa complex built on the banks of the River Labe.
Back to top
View user's profile Send private message
frag.machine



Joined: 25 Nov 2006
Posts: 728

PostPosted: Wed May 19, 2010 5:58 pm    Post subject: Reply with quote

Orion wrote:
Like Spirit said, there's no way to load 2 mods at the same time.
But in a simpler way, you'll need to find nehahra source code, rogue source code, and put the rogue monsters .qc files into the nehahra source code, modify progs.src properly and then compile.


That's easier said than done. Very Happy

Darkplaces allows to load .paks and discrete artwork assets (models, sprites, sounds, gfx) from multiple game folders at once. But this doesn't applies for progs.dat, obviously.
_________________
frag.machine - Q2K4 Project
http://fragmachine.quakedev.com/
Back to top
View user's profile Send private message Visit poster's website
leileilol



Joined: 15 Oct 2004
Posts: 1321

PostPosted: Wed May 19, 2010 6:08 pm    Post subject: Reply with quote

and that's why unreal is the best engine ever
_________________
Back to top
View user's profile Send private message
Mathuzzz



Joined: 09 May 2010
Posts: 14

PostPosted: Wed May 19, 2010 6:28 pm    Post subject: Reply with quote

frag.machine wrote:
Orion wrote:
Like Spirit said, there's no way to load 2 mods at the same time.
But in a simpler way, you'll need to find nehahra source code, rogue source code, and put the rogue monsters .qc files into the nehahra source code, modify progs.src properly and then compile.


That's easier said than done. Very Happy

Darkplaces allows to load .paks and discrete artwork assets (models, sprites, sounds, gfx) from multiple game folders at once. But this doesn't applies for progs.dat, obviously.


That´s the problem exactly, I already tried it that way, but I get Runtime error 213 with nehahra decompiler, I used patch, which repaired compiler, but decompiler still doesn´t work. Sad
Back to top
View user's profile Send private message
Spike



Joined: 05 Nov 2004
Posts: 944
Location: UK

PostPosted: Thu May 20, 2010 1:38 am    Post subject: Reply with quote

FTE_MULTIPROGS
permits loading multiple progs at once.
essentually UT mutators, but more clumsy.
does NOT combine existing mods, but does allow adding code to closed source mods in a generic way.

<doc-me>
_________________
What's a signature?
Back to top
View user's profile Send private message Visit poster's website
Error
Inside3D Staff


Joined: 05 Nov 2004
Posts: 558
Location: VA, USA

PostPosted: Thu May 20, 2010 5:53 am    Post subject: Reply with quote

Spike is an insane-in-the-membrane sorta guy. It's been in FTEQW for a good while now. Sadly, no documentation is found.
_________________
Inside3D : Knowledge Is Power
Darkplaces Documentation Wiki
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Spike



Joined: 05 Nov 2004
Posts: 944
Location: UK

PostPosted: Thu May 20, 2010 12:36 pm    Post subject: Reply with quote

Error wrote:
Spike is an insane-in-the-membrane sorta guy. It's been in FTEQW for a good while now.

This I cannot deny.
Quote:
Sadly, no documentation is found.

http://fteqw.svn.sourceforge.net/viewvc/fteqw/branches/wip/specs/multiprogs.txt should be sufficient info.
_________________
What's a signature?
Back to top
View user's profile Send private message Visit poster's website
Sajt



Joined: 16 Oct 2004
Posts: 1026

PostPosted: Thu May 20, 2010 5:23 pm    Post subject: Reply with quote

Eeeeesh! :O
_________________
F. A. Špork, an enlightened nobleman and a great patron of art, had a stately Baroque spa complex built on the banks of the River Labe.
Back to top
View user's profile Send private message
frag.machine



Joined: 25 Nov 2006
Posts: 728

PostPosted: Thu May 20, 2010 5:47 pm    Post subject: Reply with quote

Spike wrote:
Error wrote:
Sadly, no documentation is found.

http://fteqw.svn.sourceforge.net/viewvc/fteqw/branches/wip/specs/multiprogs.txt should be sufficient info.


Documentation for such exotic extensions as FTE_MULTIPROGS needs to be something more rich and detailed, preferably followed by a couple examples covering the main aspects worth of note. There are a truck of non-trivial and non-obvious details involved in merging two or more QuakeC mods on-the-fly that can easily spoil any autodidact effort to use it (for example, you should consider that many of us have exactly ZERO experience with UT mutators, but that's doesn't prevent us of being curious about how we could explore this feature in Quake), rendering all your effort useless in the sense of "most interested people won't be able to produce something alone just reading two or three paragraphs of text, so they'll just give up".
_________________
frag.machine - Q2K4 Project
http://fragmachine.quakedev.com/
Back to top
View user's profile Send private message Visit poster's website
Spike



Joined: 05 Nov 2004
Posts: 944
Location: UK

PostPosted: Thu May 20, 2010 10:32 pm    Post subject: Reply with quote

UT mutators work because the base mod is known and consistant. want to make a new weapon? make it derive from class X. job done.
QuakeC doesn't work like that. the code is more procedural. new features require random changes throughout. you can't just create new ents that derive from other ents in well defined ways. a function is a function, not a _member_ function.
multiprogs provides features that can be used to create UT-like mutators. but that's where the similarity ends. the implementation is different - its multiprogs, not mutators. mutators are a mod-specific usage of multiprogs.
multiprogs just says that you can load multiple progs at once, and get/set the globals/fields of other progs if needed, including the globals that refer to function defs, and that values present in one progs are still valid when exposed to another.
it remaps functions strings and fields to be consistent between each progs file, so that you can call an .void() or whatever safely from one progs to another.
globals are still separate though. hence the get/set builtins. and function definitions are actually function pointers of a kind.

its not that exotic, and its not magic. its just a way to add lots more code to an existing progs.

that link documents the functionality and the quirks. but most of the things you presumably envisage doing require a heck of a lot of hooks all over the place. writing such a mutator would be fairly obscure and not a good example of the actual functionality provided.
I did make one that hijacked the playerprethink/postthink functions and made quake turn-based in such a way that should be able to apply to most mods. Which was certainly fun, but not useful - I agree that I should clean it up and post it somewhere, but really it would be a distraction from the code I already gave, unless you really wanted to make quake turn-based and nothing else.

I hate documentation. yes. its terse. enjoy.
_________________
What's a signature?
Back to top
View user's profile Send private message Visit poster's website
Spike



Joined: 05 Nov 2004
Posts: 944
Location: UK

PostPosted: Thu May 20, 2010 11:50 pm    Post subject: Reply with quote

I found this on my harddrive: http://fteqw.svn.sourceforge.net/viewvc/fteqw/branches/wip/specs/fbotplug.zip
Its just frikbot (slightly modified+buggified probably to use DP_BOTCLIENT) in a multiprogs plugin, that should work for closed source mods that have frikbot-compatible weapons+rules.
Actually, frikbot is a very good example of multiprogs - its just extra/modular code.
_________________
What's a signature?
Back to top
View user's profile Send private message Visit poster's website
goldenboy



Joined: 05 Sep 2008
Posts: 310
Location: Kiel

PostPosted: Fri May 21, 2010 7:22 pm    Post subject: Reply with quote

> its not that exotic, and its not magic. its just a way to add lots more code to an existing progs.

something makes me like this feature.

Twisted Evil
_________________
ReMakeQuake
The Realm of Blog Magic
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Inside3d Forums Forum Index -> General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2004 phpBB Group