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 18-Oct-2014 21:35:23

hebdemnobad
Member
From: northamerica
Registered: 20-Apr-2011
Posts: 1,541
Website

modding the player

colleagues:

I am starting the process of modding the os3d player into something a bit different. So I created a new directory in C:\Program Files (x86)\Scol Voyager\Partition_LockedApp\tools named mediaoctopus3dplayer

I renamed  os3dplayer.scol name to mediaoctopus3dplayer.scol
and I changed the file path in mediaoctopus3dplayer.scol to:

	_load "tools/mediaoctopus3dplayer/os3dload.pkg"

I renamed os3dplayer.pkg to mediaoctopus3dplayer.pkg

In os3dload.pkg, I changed:

  let "tools/os3dlib/tools.pkg"::

    "tools/os3dlib/xmlparser.pkg"::

    "tools/os3dlib/keyblib.pkg"::

    "tools/os3dlib/ogrematparser.pkg"::

    "tools/os3dlib/v3dlib.pkg"::

    "tools/os3dlib/v3dlib_physics.pkg"::

    "tools/os3dlib/2dglib.pkg"::

    "tools/os3dlib/minidhdms.pkg"::

    "tools/os3dlib/mkapplet.pkg"::

    "tools/os3dlib/netcomlib.pkg"::

    "tools/os3dlib/os3dpaths.pkg"::

    "tools/os3dlib/os3dstruct.pkg"::

    "tools/os3dlib/os3dtypeconv.pkg"::

    "tools/os3dlib/os3dplugins.pkg"::

    "tools/os3dlib/os3dpluginscb.pkg"::

    "tools/os3dlib/os3dloader.pkg"::

    "tools/os3dplayer/os3dversion.pkg"::

    "tools/os3dplayer/os3dlogs.pkg"::

    "tools/os3dplaye/mediaoctopus3dplayer.pkg"::

      nil

  -> lfiles in

to

  let "tools/os3dlib/tools.pkg"::

    "tools/os3dlib/xmlparser.pkg"::

    "tools/os3dlib/keyblib.pkg"::

    "tools/os3dlib/ogrematparser.pkg"::

    "tools/os3dlib/v3dlib.pkg"::

    "tools/os3dlib/v3dlib_physics.pkg"::

    "tools/os3dlib/2dglib.pkg"::

    "tools/os3dlib/minidhdms.pkg"::

    "tools/os3dlib/mkapplet.pkg"::

    "tools/os3dlib/netcomlib.pkg"::

    "tools/os3dlib/os3dpaths.pkg"::

    "tools/os3dlib/os3dstruct.pkg"::

    "tools/os3dlib/os3dtypeconv.pkg"::

    "tools/os3dlib/os3dplugins.pkg"::

    "tools/os3dlib/os3dpluginscb.pkg"::

    "tools/os3dlib/os3dloader.pkg"::

    "tools/mediaoctopus3dplayer/os3dversion.pkg"::

    "tools/mediaoctopus3dplayer/os3dlogs.pkg"::

    "tools/mediaoctopus3dplayer/mediaoctopus3dplayer.pkg"::

      nil

  -> lfiles in

when I run mediaoctopus3dplayer.scol, os3dload, I run into problems with fun loadOS3D....

after

    while (lfiles != nil) && (secureLoad hd lfiles) do

    (

      set lfiles = tl lfiles;

    );

   

runs through the lfiles list, lfiles fail to == nil and the .pkg forks to

        _DLGrflmessage (_DLGMessageBox _channel nil "Error" "This version of OpenSpace3D Player is not compatible with your Scol Voy@ger version, please perform an update or ask the webmaster to uptade his projects." 0) @cbVersionError nil;

...is there some type of configuration file that is preventing the slightly modified files to run?  all i did was clone the player files, put them in a new subdirectory of tools, and renamed some of the paths.  I don't know what is causing the problem (as I write this, I'm sure I will learn something basic in your replies.)

thx for your help
-h

Offline

#2 18-Oct-2014 22:26:36

hebdemnobad
Member
From: northamerica
Registered: 20-Apr-2011
Posts: 1,541
Website

Re: modding the player

[solved]

I created a messagebox outside of a function declaration. So if I make a mistake in modding the os3dplayer.pkg file, for some reason the vm cannot iterate through the lfiles list.

Offline

#3 18-Oct-2014 23:11:16

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

Re: modding the player

Yes you can look at the loader of the editor, it show the compilation error in a dialog box, it's easier to debug

Offline

#4 18-Oct-2014 23:29:55

hebdemnobad
Member
From: northamerica
Registered: 20-Apr-2011
Posts: 1,541
Website

Re: modding the player

arkeon wrote:

Yes you can look at the loader of the editor, it show the compilation error in a dialog box, it's easier to debug

Thx arkeon...
would using _showconsole  work just as well?

Offline

#5 19-Oct-2014 00:11:28

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

Re: modding the player

no, the error should occur in _testPkg so this the the return content of the function

Offline

#6 19-Oct-2014 11:00:00

iri
Admin. / Scol language & Scol apps developer
From: France
Registered: 22-Feb-2009
Posts: 2,024
Website

Re: modding the player

_testPkg ?

Offline

#7 19-Oct-2014 12:46:10

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

Re: modding the player

I mean _testpak

Offline

#8 19-Oct-2014 13:01:16

hebdemnobad
Member
From: northamerica
Registered: 20-Apr-2011
Posts: 1,541
Website

Re: modding the player

arkeon wrote:

I mean _testpak


Thx I'll do that in my nodded pkgs.

Offline

#9 19-Oct-2014 13:15:08

iri
Admin. / Scol language & Scol apps developer
From: France
Registered: 22-Feb-2009
Posts: 2,024
Website

Re: modding the player

_testpak return nil if the loading is OK and a string message else. You can display this message in the console.
It is the same message when a classical compilation fails. Such as :

File : C:\Program Files\Scol Voyager\Partition_LockedApp\test\2dos\db2.pkg
(!) Line #238:
		db2_checkCount db ??allH
'allH' unknown
link error

http://www.scolring.org/files/doc_html/_testpak.html

Offline

Board footer

Powered by FluxBB