Scolring - Forum

Entraides et échanges autour de la technologie Scol - Informations and exchanges on the Scol technology

Vous pouvez changer la langue de l'interface une fois inscrit - You can change the language once registered

You are not logged in.

#1 4-Apr-2017 09:59:17

el_motoblock
Member
From: Russia
Registered: 16-Feb-2013
Posts: 271

Instantiate plugit + door

Hello
I completely decided to remake my game for the android phone.
To not load the device, I decided to use the plugit Instantiate for each individual interior / exterior.
* game_main.xos is main file for loading game, immediately instantiate load room1>
* room1.xos - Interior in which there is a door, in physical contact with which the "room1" should be unloaded and the "world1" will be loaded
* world1.xos open world (Reduced and optimized)

but contact with door not works and My trick with loading-unloading does not work.
I can not implement it, sorry for my stupidity

https://drive.google.com/open?id=0BxQ6o … W9lY3g3Y3c
in game_main.xos/groups/scene, in left-bottom corner begins with "timer inst(5)"

Offline

#2 4-Apr-2017 10:03:24

arkeon
Admin. / Scol language & OpenSpace3D developer
From: Nantes
Registered: 30-Mar-2009
Posts: 5,161
Website

Re: Instantiate plugit + door

Hello,

classic behavior should be:

room1 door -> call tunnel goto room2 in main project
tunnel goto room2 -> show loading screen
tunnel goto room2 -> remove all room1 instances
tunnel goto room2 -> room2.add instance

and to go back
room2 door -> call tunnel goto room1 in main project
tunnel goto room1 -> show loading screen
tunnel goto room1 -> remove all room2 instances
tunnel goto room1 -> room1.add instance

Offline

#3 4-Apr-2017 10:11:38

el_motoblock
Member
From: Russia
Registered: 16-Feb-2013
Posts: 271

Re: Instantiate plugit + door

not understand, where i find "tunnel"?

Offline

#4 4-Apr-2017 10:12:59

arkeon
Admin. / Scol language & OpenSpace3D developer
From: Nantes
Registered: 30-Mar-2009
Posts: 5,161
Website

Re: Instantiate plugit + door

in misc category
input tunnel
it allows to make link between instantiated projects

Offline

#5 4-Apr-2017 11:07:43

el_motoblock
Member
From: Russia
Registered: 16-Feb-2013
Posts: 271

Re: Instantiate plugit + door

thanks, works)

Offline

#6 4-Apr-2017 19:20:47

el_motoblock
Member
From: Russia
Registered: 16-Feb-2013
Posts: 271

Re: Instantiate plugit + door

https://drive.google.com/open?id=0BxQ6o … FhkdENQVjg apk
https://drive.google.com/open?id=0BxQ6o … EFvOXFIbnM game project
Blackscreen after loadscreen, 2d menu loaded too, but gameworld nod load. In game settings - third in 2n row - button "reset", near "save" & "load" buttons. reset button resets all scene and put player at pos.
Cut out a lot of the game for a while
I remember there was such a bug when using multiple lighting sources.
But 1 in main(unloads at oyher xos loaded in main game), 1 in room1, 1 in world1 - At startup everyone turns off the other

Offline

#7 4-Apr-2017 19:27:10

arkeon
Admin. / Scol language & OpenSpace3D developer
From: Nantes
Registered: 30-Mar-2009
Posts: 5,161
Website

Re: Instantiate plugit + door

you mean it is working in the editor but not on android ?
I'm not sure to understand

Offline

#8 4-Apr-2017 20:09:43

el_motoblock
Member
From: Russia
Registered: 16-Feb-2013
Posts: 271

Re: Instantiate plugit + door

yes it works on editor only

Offline

#9 4-Apr-2017 20:46:21

arkeon
Admin. / Scol language & OpenSpace3D developer
From: Nantes
Registered: 30-Mar-2009
Posts: 5,161
Website

Re: Instantiate plugit + door

ok I'll test this tomorrow

Offline

#10 6-Apr-2017 14:36:58

el_motoblock
Member
From: Russia
Registered: 16-Feb-2013
Posts: 271

Re: Instantiate plugit + door

I'm waiting.

Offline

#11 6-Apr-2017 14:59:16

arkeon
Admin. / Scol language & OpenSpace3D developer
From: Nantes
Registered: 30-Mar-2009
Posts: 5,161
Website

Re: Instantiate plugit + door

yes sorry I didn't had the time yet

Offline

#12 6-Apr-2017 15:11:49

arkeon
Admin. / Scol language & OpenSpace3D developer
From: Nantes
Registered: 30-Mar-2009
Posts: 5,161
Website

Re: Instantiate plugit + door

Ok I did test the project in the editor and it doesn't work either.
it seems the material files do not have the correct path for textures.
also I don't understand where you load the first world state on start.

clean up your Openspace3D partition removing old textures and meshes files locations.
So you will see the errors

Offline

#13 7-Apr-2017 06:04:59

el_motoblock
Member
From: Russia
Registered: 16-Feb-2013
Posts: 271

Re: Instantiate plugit + door

arkeon wrote:

.
also I don't understand where you load the first world state on start.

game_main.xos/Groups/Scene  timer MAIN TIMER INIT(timer plugit)
left-center

Last edited by el_motoblock (7-Apr-2017 06:05:39)

Offline

#14 8-Apr-2017 16:24:05

el_motoblock
Member
From: Russia
Registered: 16-Feb-2013
Posts: 271

Re: Instantiate plugit + door

arkeon wrote:

it seems the material files do not have the correct path for textures.

But what's wrong there?
Copy for example

Offline

#15 8-Apr-2017 16:36:20

el_motoblock
Member
From: Russia
Registered: 16-Feb-2013
Posts: 271

Re: Instantiate plugit + door

https://drive.google.com/open?id=0BxQ6o … EFvOXFIbnM updated, removedold tex +apk include
not works in android too. Only 2d - gui buttons interactivity works, but 3d not works, and walk sound Does not sound.

Last edited by el_motoblock (8-Apr-2017 16:46:00)

Offline

#16 8-Apr-2017 16:49:58

arkeon
Admin. / Scol language & OpenSpace3D developer
From: Nantes
Registered: 30-Mar-2009
Posts: 5,161
Website

Re: Instantiate plugit + door

I think you make a mistake when you used the tool to relocate ressources.
it just change the location in the xos file, you must manually copy the resources to the new location and in material scripts
You should redo it from your backup. and check by cleaning the directories.

Offline

#17 8-Apr-2017 17:27:40

el_motoblock
Member
From: Russia
Registered: 16-Feb-2013
Posts: 271

Re: Instantiate plugit + door

arkeon wrote:

I think you make a mistake when you used the tool to relocate ressources.

In editor all works normal

arkeon wrote:

it just change the location in the xos file, you must manually copy the resources to the new location and in material scripts

In the log would be an error when opening .xos It detects lost files easily.

arkeon wrote:

You should redo it from your backup. and check by cleaning the directories.

It's already late, then everything is different. I had to completely change everything

In fact the problem is that the editor is fine without errors, but in the android everything is so bad

Last edited by el_motoblock (8-Apr-2017 17:28:59)

Offline

#18 8-Apr-2017 18:28:44

arkeon
Admin. / Scol language & OpenSpace3D developer
From: Nantes
Registered: 30-Mar-2009
Posts: 5,161
Website

Re: Instantiate plugit + door

If you changed the paths in the xos but keep the files at the old locations, maybe it find them at the previous location.

export it for windows and test it.
it should do almost the same as android if you forgot the update some files paths without moving the files.

Offline

#19 9-Apr-2017 05:40:32

el_motoblock
Member
From: Russia
Registered: 16-Feb-2013
Posts: 271

Re: Instantiate plugit + door

in windows, in linux64 not works too, i change back all paths, but it still does not work.
You may have to do everything newly
i make either xos use game_main.xos, I looked more closely and removed the unused resources in xos's. nothing changed.
Maybe it's because of tunnel plugit - load-unload

Last edited by el_motoblock (9-Apr-2017 06:00:09)

Offline

Board footer

Powered by FluxBB