Gamestudio Links
Zorro Links
Newest Posts
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
Eigenwerbung
by jcl. 04/26/24 11:08
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (Quad, degenerate_762), 642 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
wandaluciaia, Mega_Rod, EternallyCurious, howardR, 11honza11
19049 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Nexus killed by Skycube? #336720
08/05/10 20:23
08/05/10 20:23
Joined: Jan 2009
Posts: 84
Deutschland
E
Ernie76 Offline OP
Junior Member
Ernie76  Offline OP
Junior Member
E

Joined: Jan 2009
Posts: 84
Deutschland
Hi,

i spoted some strange behavior in our Game.
I made 2 skycubes that are loaded by the engine and they work and look fine. They are 6144 x 1024 pixels large ( Exact doubel the size ob the skys, delivered with GS ). The Vidocard should easy handel that size.
Damm thing is: When pressin F11 the Nexus isent Displayed.
After rezising the skycubes to the original size ( half the size ) the nexus is displayed but the skycube looks very blurry becouse of the small size. The size is Power of 2, the memory ist there, the cube is displayed, only the damm nexus is not displayed with 6144x1024. The whole thing seems to be the source of rendom crashes.
Dose anyone has a clue why that happens?


Last edited by Ernie76; 08/05/10 20:24.
Re: Nexus killed by Skycube? [Re: Ernie76] #336728
08/05/10 20:57
08/05/10 20:57
Joined: Feb 2006
Posts: 1,011
Germany
pegamode Offline
Serious User
pegamode  Offline
Serious User

Joined: Feb 2006
Posts: 1,011
Germany
Some additional info:

The skycubes are declared like this:

ENTITY* cube = {
type="skycube04_high+6.tga";
layer=2;
z=5;
flags2 = SKY | CUBE;
}

ENTITY* cube_moon = {
type="skycube07_high+6.tga";
layer=2;
z=5;
flags2 = SKY | CUBE;
}

None have the SHOW flag set ... this is done separately when the levels are loaded. It's always only one of them shown.

The error occurs only if both skycubes are declared. Both work fine when standalone, but together they override some memory with the result that some engine variables are overwritten (e.g. the nexus value).

Re: Nexus killed by Skycube? [Re: pegamode] #336732
08/05/10 21:35
08/05/10 21:35
Joined: Feb 2009
Posts: 2,154
Damocles_ Offline
Expert
Damocles_  Offline
Expert

Joined: Feb 2009
Posts: 2,154
does it occur on a totally clean level, just using the skycubes?

Re: Nexus killed by Skycube? [Re: Damocles_] #336738
08/05/10 22:14
08/05/10 22:14
Joined: Jan 2009
Posts: 84
Deutschland
E
Ernie76 Offline OP
Junior Member
Ernie76  Offline OP
Junior Member
E

Joined: Jan 2009
Posts: 84
Deutschland
Pegamode made a little test Program and if i understood him right, then yes.

Re: Nexus killed by Skycube? [Re: Ernie76] #336768
08/06/10 04:53
08/06/10 04:53
Joined: Feb 2006
Posts: 1,011
Germany
pegamode Offline
Serious User
pegamode  Offline
Serious User

Joined: Feb 2006
Posts: 1,011
Germany
Yes, I can reproduce it with a small litte test program that just loads a level and declares those skycubes.

I took a "normal" skymap and used photoshop to change its size to 6144x1024.
Then I made a copy of this skymap and declared them both as shown above.

After that the nexus is overridden.

[code]
ENTITY* cube = {
type="a+6.tga";
layer=2;
z=5;
flags2 = SKY | CUBE;
}

ENTITY* cube_moon = {
type="b+6.tga";
layer=2;
z=5;
flags2 = SKY | CUBE;
}



void main() {

level_load("telescope_room.wmb");

while(1) {
wait(1);
}

}

{/code]

Re: Nexus killed by Skycube? [Re: pegamode] #336771
08/06/10 06:38
08/06/10 06:38
Joined: Feb 2006
Posts: 1,011
Germany
pegamode Offline
Serious User
pegamode  Offline
Serious User

Joined: Feb 2006
Posts: 1,011
Germany
By the way ... this seems to work without any problem:

Code:
STRING* cubeStr1 = "skycube04_high+6.tga";
STRING* cubeStr2 = "skycube07_high+6.tga";

ENTITY* cube = { 
	type="skycube04_high+6.tga";
	layer=2;       
	z=5;	
	flags2 = SKY | CUBE | SHOW;
}



void main() {		
	
	level_load("telescope_room.wmb");	
	
	int i = 0;
	
	while(1) {	
		
		wait(-5);
		
		if (i == 0) {
			i = 1;
			ent_morph(cube, cubeStr2);
		} else {
			i = 0;
			ent_morph(cube, cubeStr1);
		}
		
		wait(1);				
	}
	
}



Re: Nexus killed by Skycube? [Re: pegamode] #336810
08/06/10 13:25
08/06/10 13:25
Joined: Feb 2009
Posts: 2,154
Damocles_ Offline
Expert
Damocles_  Offline
Expert

Joined: Feb 2009
Posts: 2,154
true, tested this.
it does not show the nexus. (shows a 0)

Also when display both with show in the beginning, the engine crashes.

using a smaller skycube as second skycube works and shows the nexus.

So probably the engine runs out of memeory.
(not displaying the nexus, as it runs over a limit i suppose)


Moderated by  HeelX, Spirit 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1