|
2 registered members (TipmyPip, Quad),
6,365
guests, and 4
spiders. |
|
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: Prevent showing Textures in dedicated sever mode?
[Re: muffel]
#374412
06/18/11 14:13
06/18/11 14:13
|
Joined: Jun 2006
Posts: 2,640 Earth
Germanunkol
OP
Expert
|
OP
Expert
Joined: Jun 2006
Posts: 2,640
Earth
|
Just build an own wrs with all the textures, and build another wrs with very small dummy textures, that you put in the server's folders.
But the server and client are using the same folders! It's the same binary, as I said above. If we use different folders for the two, then we need to reship all .wrs files again a second time, which will almost double the file size. Whats about removing the skin after loading. this should solve in someway the memory issue, but would slowdown additionally the loading process. this would happen every round-restart and would slow down the loading process even more instead of speeding it up, I believe.
~"I never let school interfere with my education"~ -Mark Twain
|
|
|
Re: Prevent showing Textures in dedicated sever mode?
[Re: Germanunkol]
#374413
06/18/11 14:31
06/18/11 14:31
|
Joined: Sep 2003
Posts: 5,900 Bielefeld, Germany
Pappenheimer
Senior Expert
|
Senior Expert
Joined: Sep 2003
Posts: 5,900
Bielefeld, Germany
|
Just build an own wrs with all the textures, and build another wrs with very small dummy textures, that you put in the server's folders.
But the server and client are using the same folders! It's the same binary, as I said above. I know. What I meant is, that you send only the wrs with the dummy textures seperated from the game folders within the zip. The dummy textures are supposed to be tiny. Maybe, you can include two installers, one for client mode and one server mode, where in server mode the standard texture wrs will be replaced by the dummy textures. No different binary needed. Means: in server mode there are just different textures in the same folder. Or: even better. Maybe, you can implement in the code that when starting as server the engine loads the textures from the dummy texture folder, and when starting as client load them from the standard folder - I'm not sure whether this is possible, though.
|
|
|
Re: Prevent showing Textures in dedicated sever mode?
[Re: Pappenheimer]
#374475
06/19/11 07:17
06/19/11 07:17
|
Joined: Jun 2006
Posts: 2,640 Earth
Germanunkol
OP
Expert
|
OP
Expert
Joined: Jun 2006
Posts: 2,640
Earth
|
No, I don't think it can be done by code. That's why I asked here, and since jcl did not reply with "use code to load the right wrs files depending on whether you run as server or client" I assume it's not possible. Also, the manual's pretty clear on this: At engine start, all WRS resources found in the work folder are automatically opened, and the files in them become available to the project. That's usually very good, but in my case makes things difficult.
~"I never let school interfere with my education"~ -Mark Twain
|
|
|
Re: Prevent showing Textures in dedicated sever mode?
[Re: Germanunkol]
#374489
06/19/11 11:20
06/19/11 11:20
|
Joined: Apr 2008
Posts: 650
Sajeth
User
|
User
Joined: Apr 2008
Posts: 650
|
That's usually very good, but in my case makes things difficult. add_folder/add_resource is what you're looking for
Teleschrott-Fan.
|
|
|
Re: Prevent showing Textures in dedicated sever mode?
[Re: jcl]
#374589
06/20/11 12:48
06/20/11 12:48
|
Joined: Jun 2006
Posts: 2,640 Earth
Germanunkol
OP
Expert
|
OP
Expert
Joined: Jun 2006
Posts: 2,640
Earth
|
It's not the level loading time I'm worried about, I want the game to use less RAM. And I think there, the difference would be noticeable (but I must admit I have no tests done to back that up with).
~"I never let school interfere with my education"~ -Mark Twain
|
|
|
|