Post new topic    
Liquid Metal Slime
Send private message
Does having many NPC's slow down the game as it runs? 
 PostMon Oct 14, 2013 12:45 am
Send private message Reply with quote
I was wondering if having many NPC's, particularly copies of NPC's that are non-moving and invisible, would slow down my game in each area?

example) Would having 200 NPC copies that are standing still on a map slow the game down in that area?
⊕ P E R S O N A L M U S I C: https://open.spotify.com/album/6fEo3fCm5C3XhtFRflfANr
⍠ C O L L A B M U S I C: https://dustpuppets.bandcamp.com/releases
Metal King Slime
Send private message
 
 PostMon Oct 14, 2013 1:06 am
Send private message Reply with quote
No, that should be fine.

(The limit on NPC instances is still only 300)
Metal King Slime
Send private message
 
 PostMon Oct 14, 2013 1:35 am
Send private message Reply with quote
I've had around 250 npcs on a map at a time, no real slowdown seen. It might slow down if you're scripting something for each of them though, but that would depend on your script.
Being from the third world, I reserve the right to speak in the third person.

Using Editor version wip 20170527 gfx_sdl+fb music_sdl
Liquid Metal Slime
Send private message
 
 PostMon Oct 14, 2013 4:42 am
Send private message Reply with quote
Sounds good, I'll just test it out then. Thanks.
⊕ P E R S O N A L M U S I C: https://open.spotify.com/album/6fEo3fCm5C3XhtFRflfANr
⍠ C O L L A B M U S I C: https://dustpuppets.bandcamp.com/releases
Blubber Bloat
Send private message
 
 PostMon Oct 14, 2013 12:27 pm
Send private message Reply with quote
TMC wrote:
No, that should be fine.

(The limit on NPC instances is still only 300)


Hm...I don't know if AR-PUH-GUH! will be liking that in the end...
dOn'T MiNd mE! i'M jUsT CoNtAgIoUs!!!
Play Orbs CCG: http://orbsccg.com/r/4r6x V
Liquid Metal King Slime
Send private message
 
 PostMon Oct 14, 2013 4:57 pm
Send private message Reply with quote
Meowskivich wrote:
TMC wrote:
No, that should be fine.

(The limit on NPC instances is still only 300)


Hm...I don't know if AR-PUH-GUH! will be liking that in the end...


The limit is 300 NPC instances on a single map
Metal King Slime
Send private message
 
 PostMon Oct 14, 2013 5:30 pm
Send private message Reply with quote
Bob the Hamster wrote:
Meowskivich wrote:
TMC wrote:
No, that should be fine.

(The limit on NPC instances is still only 300)


Hm...I don't know if AR-PUH-GUH! will be liking that in the end...


The limit is 300 NPC instances on a single map


Although if you use some really cunning and clever script magic, I'm pretty sure you could find a neat little work-around for having more than 300 NPCs wandering around. It'd definitely involve using slices and scripting your own movement thing for them and it'd be pretty darn complicated I believe. Though one wonders what anyone would be doing with more than 300 NPCs on a single map...
Being from the third world, I reserve the right to speak in the third person.

Using Editor version wip 20170527 gfx_sdl+fb music_sdl
Blubber Bloat
Send private message
 
 PostMon Oct 14, 2013 8:49 pm
Send private message Reply with quote
BMR wrote:
Bob the Hamster wrote:
Meowskivich wrote:
TMC wrote:
No, that should be fine.

(The limit on NPC instances is still only 300)


Hm...I don't know if AR-PUH-GUH! will be liking that in the end...


The limit is 300 NPC instances on a single map


Although if you use some really cunning and clever script magic, I'm pretty sure you could find a neat little work-around for having more than 300 NPCs wandering around. It'd definitely involve using slices and scripting your own movement thing for them and it'd be pretty darn complicated I believe. Though one wonders what anyone would be doing with more than 300 NPCs on a single map...


Do you people seriously underestimate how big AR-PUH-GUH! is going to be? I'll be needing lots and lots o' NPCs for things such as signs to be read and monsters you do side-quests to hunt. I want to get the world on a single map instead of broken up like I originally was gonna have it. There, of course, will be boat travel accessible eventually. By about the end of the first major continent. 300 might suffice, but I couldn't rightly say. This is a project that's years in the making, and many years still lay ahead in it's development process.

On a similar token, what's the current max doors allowed? Because that may, too, cause a prollem.
dOn'T MiNd mE! i'M jUsT CoNtAgIoUs!!!
Play Orbs CCG: http://orbsccg.com/r/4r6x V
Metal Slime
Send private message
 
 PostMon Oct 14, 2013 9:56 pm
Send private message Reply with quote
You could "load" areas, possibly using zones, deleting old NPC instances from other zones and creating your new ones as players move into those areas. If you really need that.
Metal Slime
Send private message
 
 PostMon Oct 14, 2013 10:13 pm
Send private message Reply with quote
Scripting can get around max door limits fairly easily (on-step script, check to see if the player just stepped where you wanted there to be a door, if so suspend, fade, teleport, etc).

Scripting can also get around the max NPC limit as long as all 300 don't need to be all around the same 'area'. It's a bit more tedious to write the script, but you can have an on-step script that checks the player's position, and alters NPC attributes and places them accordingly depending on which part of the map the player is in. Tales I did this a little bit to get around the 36-NPC type limit that existed back then. I'm pretty sure other old games used this trick as well.
I am Srime
Metal King Slime
Send private message
 
 PostTue Oct 15, 2013 1:58 am
Send private message Reply with quote
And as for signs and stuff, you don't -need- to use NPCs for that. Have an on keypress thing that checks the coordinates, looks it up, and based on those coordinates, does what you want.
Being from the third world, I reserve the right to speak in the third person.

Using Editor version wip 20170527 gfx_sdl+fb music_sdl
Liquid Metal King Slime
Send private message
 
 PostTue Oct 15, 2013 3:51 am
Send private message Reply with quote
I think the easiest way to script your way around NPC and door limitation, is to use 4 or 9 or 16 maps, and write a script to smooth the transition between the edges of the map, so you get the illusion of one big map, without actually being limited to one big map.

...and thanks to the mark/clone tools in the map editor, it would only be modestly difficult to synchronize the edges of the maps

That being said, the NPC and door limits are not written in stone. They can, and probably will be raised in the future.
Metal King Slime
Send private message
 
 PostTue Oct 15, 2013 9:52 am
Send private message Reply with quote
Oh geez not this again. I hate to see people come up with elaborate workarounds for the 300 NPC limit when raising that limit in the engine isn't very hard. It hasn't been done yet because no one has requested it. But 300 is definitely far too low a limit. You don't have to do anything crazy to hit it; for example SoJ actually hits and exceeds it on a couple maps (it depends on a bug where the createNPC command overwrites existing NPCs when the limit is reached). So I'm surprised that I've never heard of any other game hitting it.

You may have up to 100 doors and 200 door links per map. I think you're only liable to hit that if you want to place doors along the edge of a map (using scripts for that is easier anyway).
Blubber Bloat
Send private message
 
 PostTue Oct 15, 2013 1:09 pm
Send private message Reply with quote
There will certainly most likely be the need for more than 100 doors for AR-PUH-GUH!. Script may be able to get around that, though. But default dooring would be a nicer thing. /puppy eyes
I'll probably make a note of it in the AR-PUH-GUH! thread once I get close to that limit.
I mean, I suppose I could just do something where the world map is separate from each area map. I just wanted to make a grand epic map was all.
Thanks for lettin' me know me limits. 300 NPCs and 100 doors, seems coo'.
dOn'T MiNd mE! i'M jUsT CoNtAgIoUs!!!
Play Orbs CCG: http://orbsccg.com/r/4r6x V
Liquid Metal Slime
Send private message
 
 PostWed Oct 16, 2013 2:02 am
Send private message Reply with quote
I recently encountered this limitation and so I broke my world map into 2 maps. Actually, my game is better for it, but it would be nice not to have to mess with all those work arounds.
Display posts from previous: