GAMEINFO extra Load* functions
Moderator: GZDoom Developers
- Major Cooke
- Posts: 8170
- Joined: Sun Jan 28, 2007 3:55 pm
- Preferred Pronouns: He/Him
- Location: QZDoom Maintenance Team
GAMEINFO extra Load* functions
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.
LoadAfter: Loads the files after instead of before.
LoadRequiredAfter: Combo of the two above.
Re: GAMEINFO extra Load* functions
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.
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.
- 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
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.
Re: GAMEINFO extra Load* functions
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.
- 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
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.
Re: GAMEINFO extra Load* functions
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.
Make a batch file if you want that kind of things.
- 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
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.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.
- Graf Zahl
- Lead GZDoom+Raze Developer
- Posts: 49056
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: GAMEINFO extra Load* functions
pre-loading a required base mod is perfectly acceptable, but this really makes no sense at all.
- 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
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.
At least people will then recognize they forgot to download something else.
- 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
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.
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.