Gamestudio Links
Zorro Links
Newest Posts
folder management functions
by 7th_zorro. 04/16/24 13:19
lookback setting performance issue
by 7th_zorro. 04/16/24 03:08
zorro 64bit command line support
by 7th_zorro. 04/15/24 09:36
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:48
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:46
LPDIRECT3DCUBETEXTUR
E9

by Ayumi. 04/12/24 11:00
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 04/11/24 14:56
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (rki, Ayumi), 475 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
11honza11, ccorrea, sakolin, rajesh7827, juergen_wue
19045 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Jump from A7 to A8, ent_create doesn't work? #471213
02/23/18 16:03
02/23/18 16:03
Joined: Jan 2006
Posts: 245
PA
Garrettwademan Offline OP
Member
Garrettwademan  Offline OP
Member

Joined: Jan 2006
Posts: 245
PA
Hey everyone. I have been using A7 for a very long time because my project was over 100k lines of code. It works very well, but today I bought A8 PRO and ran my project (C-SCRIPT), and everything worked (awesome), but none of my models are showing up.

Does anyone know if there was a change to ent_create, or something with the texture settings I need to set? I tried a blank gray MDL model without textures but it didn't render. I also added an "exit;" in my function to make sure the code was getting to the right place.

Any suggestions?

Code:
function fncAdjustTerrain(){
	//This function controls all of the terrain zones in the world, these settings are used by all zones
	my.scale_x = 250;		//Set the correct scaling using the global variable at the top of script
	my.scale_y = 250;
	my.scale_z = 250;
	my.push = 100;							//Push is more than player so player cannot move through it
	my.polygon = on;						//Make this object unique with collision so player can navigate it correctly
	my.passable = off;					//This is not a passable terrain
	my.untouchable = on;
	
	//my.skin = 1;
	my.skill41 = 2000;						//Set correct texture map scaling for SAND
	my.skill42 = 2500;						//ROCK 125
	my.skill43 = 750; 					//GRASS		
	
	my.skill41 = float(my.skill41);
	my.skill42 = float(my.skill42);
	my.skill43 = float(my.skill43);
	my.skill44 = float(my.ambient/1);	
	my.material = mtl_terrainmulti3;
}


function fncCriticalLoadDefaultWorld(){
	terrainGrassDefault = ent_createlocal("meshes/terrain/grass_130x130.hmp",vector(0,0,-250), fncAdjustTerrain);	
}



It appears collision is working
When using default A8 MDL / HMP file, it isn't visible
ent_create seems to be working as exit; in sub function kills program
location is right, I made model above camera.z
Tried tweaking graphics settings
Tried the pre_load model options

Would be so cool to get this new engine working for my project. Any help would be great.

Last edited by Garrettwademan; 02/23/18 17:28.

Current Project: Computer Repair Simulator
https://www.computer-repair-simulator.com
Re: Jump from A7 to A8, ent_create doesn't work? [Re: Garrettwademan] #471216
02/23/18 18:14
02/23/18 18:14
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline
Senior Expert
Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Does it work in a new test project?

What kind of levels are you loading? Have you tried resetting the build options?


"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends
Re: Jump from A7 to A8, ent_create doesn't work? [Re: Superku] #471218
02/23/18 18:33
02/23/18 18:33
Joined: Jan 2006
Posts: 245
PA
Garrettwademan Offline OP
Member
Garrettwademan  Offline OP
Member

Joined: Jan 2006
Posts: 245
PA
So I performed the following tests:
Test 1: Create new project in A8, compile, and load model (works)
Test 2: Create new project in A8, compile, and put old script in main.wdl. (doesn't work)

My sprites also are not showing up. The sky entities, panels, and text are all working.

It must be something with a flag / engine variable for displaying the models / textures.

Last edited by Garrettwademan; 02/23/18 18:52.

Current Project: Computer Repair Simulator
https://www.computer-repair-simulator.com
Re: Jump from A7 to A8, ent_create doesn't work? [Re: Garrettwademan] #471219
02/23/18 19:19
02/23/18 19:19
Joined: Jan 2006
Posts: 245
PA
Garrettwademan Offline OP
Member
Garrettwademan  Offline OP
Member

Joined: Jan 2006
Posts: 245
PA
I stripped my code down so I am literally only loading the terrain now. So the code below creates an object finally, but the scaling isn't working. I have terrain_chunk = 0; and the multi texture terrain isn't working.

Code:
terrainGrassDefault = ent_createlocal("meshes/terrain/grass_130x130.hmp",vector(0,0,-250), NULL);
	wait(1);
	terrainGrassDefault.scale_x = 250;  (not working)
	terrainGrassDefault.scale_y = 250;  (not working)



Current Project: Computer Repair Simulator
https://www.computer-repair-simulator.com
Re: Jump from A7 to A8, ent_create doesn't work? [Re: Superku] #471220
02/23/18 19:21
02/23/18 19:21
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline
Senior Expert
Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Alright. What's with this though:

Originally Posted By: Superku
What kind of levels are you loading? Have you tried resetting the build options ([if applicable])?


There have been changes to level_ent btw. If the camera is not inside the level_ent dimensions (min/ max - hmmm maybe with a buffer), nothing will be rendered.


"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends
Re: Jump from A7 to A8, ent_create doesn't work? [Re: Superku] #471221
02/23/18 19:28
02/23/18 19:28
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline
Senior Expert
Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
You cannot scale a terrain a frame after creation, at least with chunked terrain. (Why use wait(1) anyway?)
The (german) manual says unchunked terrain can only be 128x128 vertices big, not sure if that's a hard limit or a guideline and 130x130 is still fine.
If nothing works and you don't want to use chunked terrain you can still convert your terrain to a model and load it as that.


"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends
Re: Jump from A7 to A8, ent_create doesn't work? [Re: Superku] #471222
02/23/18 19:37
02/23/18 19:37
Joined: Jan 2006
Posts: 245
PA
Garrettwademan Offline OP
Member
Garrettwademan  Offline OP
Member

Joined: Jan 2006
Posts: 245
PA
Interesting, and thanks. Yea level_ent is new, but can't see where to change it. It says read only?

So we can't scale terrain anymore? Older version supported this if set to 0, so if the A8 doesn't scale terrain, that may not let me use the new version. I may have to crawl back in my A7 hole haha.


Current Project: Computer Repair Simulator
https://www.computer-repair-simulator.com
Re: Jump from A7 to A8, ent_create doesn't work? [Re: Garrettwademan] #471223
02/23/18 19:48
02/23/18 19:48
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline
Senior Expert
Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
I don't think there's a "read only" in lite-C (EDIT: oh, C-Script... dont know anything about it anymore), you can overwrite everything. You just shouldn't, normally wink
level_ent normally is changed automatically when it needs adjustment (like when entities leave the level boundaries) but I've had trouble with it in the past.
You might want to check those and let's say camera.xyz.


You *can* scale terrain but only immediately after creation, not a frame later (as it's turned into chunks). - Btw. any reason to not use chunked terrain?
Try saving your terrain with filename + _n, like myterrain_n.hmp. This is or was a hint to not use chunked terrain as well, might help.

Last edited by Superku; 02/23/18 19:49.

"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends
Re: Jump from A7 to A8, ent_create doesn't work? [Re: Superku] #471241
02/24/18 23:28
02/24/18 23:28
Joined: Jan 2006
Posts: 245
PA
Garrettwademan Offline OP
Member
Garrettwademan  Offline OP
Member

Joined: Jan 2006
Posts: 245
PA
Hey, this information is great, thank you for sharing. Yea I tried scaling terrain immediately after, I have worked with terrains a lot in A7 C-Script, and the terrain doesn't appear to scale regardless. I actually made a level editor, and my players can add / scale the terrain in the X / Y / Z direction to make a modified world. I use terrain for my water entity, which moves the vertices for a wave system. I am going to stay on the safe side and just finish my project in A7, then review A8 and fix those little things.

Thanks again. I had my chunked_terrain = 0 set because I have surface modifiers to them. I want the players to terraform the terrain in real-time (works great in A7). I actually use the A7 bugs to my advantage somehow, its really working out well for me.


Current Project: Computer Repair Simulator
https://www.computer-repair-simulator.com
Re: Jump from A7 to A8, ent_create doesn't work? [Re: Garrettwademan] #471242
02/25/18 00:28
02/25/18 00:28
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline
Senior Expert
Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Haha okay then, finish it with A7!

However, you should give that *_n.hmp approach a try still. In case you haven't.


"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends

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