Programmer needed: Procedural Weapon Generation

Discuss and distribute tools and methods for modding. Moderator - Grognak
English Narwhal
Posts: 402
Joined: Tue Dec 03, 2013 9:12 pm

Re: Programmer needed: Procedural Weapon Generation

Post by English Narwhal »

Sleeper Service wrote:Really, that slows it down so much? But I guess that makes sense... CE adds about, I dont know, 300 new blueprints? In the end we will might deal with about 10.000 weapons maybe... maybe the player just has to deal with that loading time. Did it run in the end? Could you start an actual game?
It adds 114 different player weapons.
To sum it up, I believe the way the weapons are loaded 'resource' wise is in powers of two- so 10000 weapons would be the equivalent of loading 16384 weapons.
Image
English Narwhal
Posts: 402
Joined: Tue Dec 03, 2013 9:12 pm

Re: Programmer needed: Procedural Weapon Generation

Post by English Narwhal »

English Narwhal wrote:
Sleeper Service wrote:Really, that slows it down so much? But I guess that makes sense... CE adds about, I dont know, 300 new blueprints? In the end we will might deal with about 10.000 weapons maybe... maybe the player just has to deal with that loading time. Did it run in the end? Could you start an actual game?
It adds 114 different player weapons.
To sum it up, I believe the way the weapons are loaded 'resource' wise is in powers of two- so 10000 weapons would be the equivalent of loading 16384 weapons.
I forgot to add: Yes, the game does load... but the starting the game also takes a while.
Image
User avatar
Sleeper Service
Posts: 2275
Joined: Sun Mar 24, 2013 8:49 pm

Re: Programmer needed: Procedural Weapon Generation

Post by Sleeper Service »

Hm I guess it would be relevant if this also affects enemy or sector load time...
Image
Working on a sci-fi deckbuilder nowadays.
Other games I made.
English Narwhal
Posts: 402
Joined: Tue Dec 03, 2013 9:12 pm

Re: Programmer needed: Procedural Weapon Generation

Post by English Narwhal »

Sleeper Service wrote:Hm I guess it would be relevant if this also affects enemy or sector load time...
Well, if it has to go through 1000 lines of code to locate the weapon, it might to a few weird things.
Image
User avatar
Kieve
Posts: 944
Joined: Tue Sep 18, 2012 2:21 pm

Re: Programmer needed: Procedural Weapon Generation

Post by Kieve »

As novel as this idea is... it's probably not worth giving the game an aneurysm over. Sometimes functionality has to take precedence.
User avatar
Sleeper Service
Posts: 2275
Joined: Sun Mar 24, 2013 8:49 pm

Re: Programmer needed: Procedural Weapon Generation

Post by Sleeper Service »

Yeah, I kind of have to agree with that... :|
Image
Working on a sci-fi deckbuilder nowadays.
Other games I made.
English Narwhal
Posts: 402
Joined: Tue Dec 03, 2013 9:12 pm

Re: Programmer needed: Procedural Weapon Generation

Post by English Narwhal »

Sleeper Service wrote:Yeah, I kind of have to agree with that... :|
I actually checked with people smarter than I am about this, and apparently, it is possible to write a script to generate the weapons as needed- and they only exist as long as needed. I'm currently trying to see how to make that work in FTL.
Image
User avatar
Sleeper Service
Posts: 2275
Joined: Sun Mar 24, 2013 8:49 pm

Re: Programmer needed: Procedural Weapon Generation

Post by Sleeper Service »

i seriously doubt that this is possible if you have to mod in the files with the mod manager anyway. This pretty much sounds like .exe modding.
Image
Working on a sci-fi deckbuilder nowadays.
Other games I made.
English Narwhal
Posts: 402
Joined: Tue Dec 03, 2013 9:12 pm

Re: Programmer needed: Procedural Weapon Generation

Post by English Narwhal »

Sleeper Service wrote:i seriously doubt that this is possible if you have to mod in the files with the mod manager anyway. This pretty much sounds like .exe modding.
Heh... I guess it does. Don't worry, I'll keep within the rules.
Image
rannl
Posts: 334
Joined: Sun Nov 25, 2012 11:13 pm

Re: Programmer needed: Procedural Weapon Generation

Post by rannl »

Just adding my 2 cents here:

I'm guessing the game loads a static file during start up - which means an existing bank of weapon blueprints, in an xml file format, is loaded into the application (game) memory during runtime (the starting loading screen).

This explains the increase in the loading time during the start of the game.

I don't think the weapons are loaded into the game memory during the game runtime, since this would result in poor performence.

Keeping this in mind, here's a possible, application based solution:
Using a simple script, a modification application is run BEFORE running the game.
The application will randomize a smaller subset of weapon modifications for each game session (instead of ~10000, ~1000 weapons or so).
The continue.sav file should also be scanned, if it exists, in order to load modified weapons that are found in the current save.
This solution will also keep the spirit of randomness, which FTL is based on.
Naturally, this is relevent only for a fast running moding application, but it seems doable to me.
The downside is adding the application + dependent environments to a mod release, but keep in mind - this sort of thing can open up a lot of doors in future mods....
Post Reply