Duke4.net Forums: Sprites Disappearing - Duke4.net Forums

Jump to content

Hide message Show message
Welcome to the Duke4.net Forums!

Register an account now to get access to all board features. After you've registered and logged in, you'll be able to create topics, post replies, send and receive private messages, disable the viewing of ads and more!

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Sprites Disappearing

User is offline   Maisth 

  • 167

#1

I've been using the F8 Method to change the Sprites number cause the map is so big that it uses a bunch of sectors, but i've been wondering, is there an easier way to change all the sprites Sectnumber at the same time?

At the same time there are some sprites who I change the Sectnumber but then it goes back to the original, any idea why is this?

Not to be Trusted, He is a slippery one.

Developer on Catharsis Reborn
0

User is offline   Photonic 

  • 1,240

#2

Mapster will correct the sectnum when it saves the map.

Why are you manually changing sectnum?

"but i've been wondering, is there an easier way to change all the sprites Sectnumber at the same time?"

open the console ~
type "include samples/a"
"do for i allsprites { set sprite[i].sectnum ### }
0

User is offline   Maisth 

  • 167

#3

 Photonic, on 13 July 2018 - 03:43 PM, said:

Mapster will correct the sectnum when it saves the map.

Why are you manually changing sectnum?

"but i've been wondering, is there an easier way to change all the sprites Sectnumber at the same time?"

open the console ~
type "include samples/a"
"do for i allsprites { set sprite[i].sectnum ### }


Why i do that its because the map has a lot of sprites and sectors, and since the sprites disappear when you are not on the main sector the solution i found was to change all the sprite's sectnum to the main one where the player will be able to see all of them.

also thanks for responding the other thing.

Not to be Trusted, He is a slippery one.

Developer on Catharsis Reborn
0

User is online   Zaxtor 

  • 1,332

#4

You're making a map displaying a large volume of sprites on 1 screen.

I have maps like that.
I think max you can show on 1 screen is around few thousands.

On old duke used to be around 1070s *can't remember*


SO what you wanna do is when you get too far from the sprite that it vanishes and reappear when you return close to it?

PS
splitting sectors with large sprites can sorta help.
I had forests with thousands of sprites.
When I splitted large sector with tons of sprite it kinda improve things.

Also mountains to hide way too much sprites can help.
dunno for you case so I must assume your level is a city base
Or on top of multi buildings and you see lots of things.

Trequonia TC's Status:
Levels : 100% done - Textures : 100% done - Sounds : 100% done - Musics :100% done
Mod is finished, going to test it.
Trequonia's Official website

This post has been edited by Zaxtor: 13 July 2018 - 04:55 PM

0

User is offline   Photonic 

  • 1,240

#5

View PostMaisth, on 13 July 2018 - 04:16 PM, said:

Why i do that its because the map has a lot of sprites and sectors, and since the sprites disappear when you are not on the main sector the solution i found was to change all the sprite's sectnum to the main one where the player will be able to see all of them.


For your information, all sprites disappear when the player can't "see" the sector the sprite is in. It's not exactly about the player needing to be on the main sector as you say. I know its a tiny detail but it may help with your map making so I brought it up. Maybe you could join non-adjacent sectors (in expert mode) which will trick the game into drawing some sprites in situations where it normally will not.
0

User is offline   Maisth 

  • 167

#6

Sorry for the 2 week bump.

Photonic, i'm aware of that, the thing is my map is a City based map and since it takes places on the rooftops you can see all sprites, the main problem is that they disappear if they are not seen in an specific sector, i'm not sure if this is a problem with the map due to many things in it or another thing.

also that command didn't work and changing the sectnum of the sprites won't do it apparently cause they change to they original num after exiting the properties of the sprite.

Not to be Trusted, He is a slippery one.

Developer on Catharsis Reborn

This post has been edited by Maisth: 23 July 2018 - 07:41 AM

0

User is offline   Mark 

  • Honored Donor
  • 2,660

#7

I just checked it again. Changing the sectnum works for me. I changed it. Saved the map. Loaded it and played. The change is still there. The change still shows when I load Mapster again.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic


All copyrights and trademarks are property of their respective owners. Instead of reading this text, you could be playing Ion Maiden! ;) © 2018 Voidpoint, LLC

Enter your sign in name and password


Sign in options