GAMEINFO extra Load* functions

Remember, just because you request it, that doesn't mean you'll get it.

Moderator: GZDoom Developers

User avatar
Major Cooke
Posts: 8170
Joined: Sun Jan 28, 2007 3:55 pm
Preferred Pronouns: He/Him
Location: QZDoom Maintenance Team

GAMEINFO extra Load* functions

Post by Major Cooke »

LoadRequired: An alternative to Load, which will abort the game launch if the file isn't found.

LoadAfter: Loads the files after instead of before.

LoadRequiredAfter: Combo of the two above.
Gez
 
 
Posts: 17834
Joined: Fri Jul 06, 2007 3:22 pm

Re: GAMEINFO extra Load* functions

Post by Gez »

For the first, I'd call it just REQUIRE instead of LOADREQUIRED.

For the other two, what's the point of loading after? Give some reasonable use-case, because the more I think about it, the less likely it seems to be actually useful.
User avatar
Major Cooke
Posts: 8170
Joined: Sun Jan 28, 2007 3:55 pm
Preferred Pronouns: He/Him
Location: QZDoom Maintenance Team

Re: GAMEINFO extra Load* functions

Post by Major Cooke »

D4D has addons developed by other people. What better of a way to offer easier support than perhaps a naming convention of sorts? I mean, yes, I could just throw in another .pk3 with LOAD involved after D4D.pk3 but that's even more micromanagement people have to deal with regardless.
Gez
 
 
Posts: 17834
Joined: Fri Jul 06, 2007 3:22 pm

Re: GAMEINFO extra Load* functions

Post by Gez »

Then it's the role of the add-on to LOAD the already-existing stuff; not the role of the main mod to force loading of every add on that might be present on the disk.
User avatar
Major Cooke
Posts: 8170
Joined: Sun Jan 28, 2007 3:55 pm
Preferred Pronouns: He/Him
Location: QZDoom Maintenance Team

Re: GAMEINFO extra Load* functions

Post by Major Cooke »

Nah, just optional stuff so people don't have to screw with things. Like for instance, it'd be pretty neat if it could take "D4D_Addon_*.pk3" where the * can be whatever is after it. Of course that's for optional loading.
Gez
 
 
Posts: 17834
Joined: Fri Jul 06, 2007 3:22 pm

Re: GAMEINFO extra Load* functions

Post by Gez »

No, that doesn't sound like a good idea. I really don't like the idea of enabling a mass loading of everything that fits such a flimsy criteria.

Make a batch file if you want that kind of things.
User avatar
wildweasel
Posts: 21706
Joined: Tue Jul 15, 2003 7:33 pm
Preferred Pronouns: He/Him
Operating System Version (Optional): A lot of them
Graphics Processor: Not Listed
Contact:

Re: GAMEINFO extra Load* functions

Post by wildweasel »

Gez wrote:No, that doesn't sound like a good idea. I really don't like the idea of enabling a mass loading of everything that fits such a flimsy criteria.

Make a batch file if you want that kind of things.
While I wouldn't put it quite like this myself, I'm inclined to agree. I don't think it should be a mod's business to be autoloading other mods. A batch file or detailed instructions should work just fine. Plus, doing it this way would confuse people who actually know what they're doing when they decide "I want D4D with D4D_Addon_splurbyfoofoo and nothing else", load just those two with ZDL, and wind up having all the addons in the folder loading anyway.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49056
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: GAMEINFO extra Load* functions

Post by Graf Zahl »

pre-loading a required base mod is perfectly acceptable, but this really makes no sense at all.
User avatar
Major Cooke
Posts: 8170
Joined: Sun Jan 28, 2007 3:55 pm
Preferred Pronouns: He/Him
Location: QZDoom Maintenance Team

Re: GAMEINFO extra Load* functions

Post by Major Cooke »

Very well then. I'll forget the rest and just say, a REQUIRED version of Load would be appreciated then.

At least people will then recognize they forgot to download something else.
User avatar
Major Cooke
Posts: 8170
Joined: Sun Jan 28, 2007 3:55 pm
Preferred Pronouns: He/Him
Location: QZDoom Maintenance Team

Re: GAMEINFO extra Load* functions

Post by Major Cooke »

Had a couple ideas.

LoadMessage - (FileName, MessageNotFound, Color NotFound, MessageFound, Color Found)
Gives the ability to print a message based on if the file is found or not along with a color to highlight them in.

In addition this could also be useful for LoadRequired so I can use it to instruct people for D4D that the D4DResources.pk3 needs to be in the same directory as the data package.
Post Reply

Return to “Feature Suggestions [GZDoom]”