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 27-Apr-2013 21:49:59

buny
Member
Registered: 27-Apr-2013
Posts: 10

how to export my project to ftp, not online but with xmapp aplication?

how to export my project to ftp, not online but with xmapp aplication,

Offline

#2 27-Apr-2013 23:20:44

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

Re: how to export my project to ftp, not online but with xmapp aplication?

Hi and welcome,

XAMPP instead ? If yes, on your local server ?

Offline

#3 27-Apr-2013 23:33:14

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

Re: how to export my project to ftp, not online but with xmapp aplication?

Hello !

try this :
- export to ftp with a bad address (127.0.0.1) but with correct directories information
- the upload fail
- copy the content of the My documents/OpenSpace3D/tmp/mkapplet directory which contain the app files for the web

Offline

#4 28-Apr-2013 04:08:36

buny
Member
Registered: 27-Apr-2013
Posts: 10

Re: how to export my project to ftp, not online but with xmapp aplication?

yes on local server, but I do not know what should fill in the "FTP host" parameter, "FTP port”,"FTP login,"FTP password” ,"www Ftp root path”,"Ftp destination directory”,"Http domain","Insert the application in the web page if you want the 3D application to be embedded in the browser page.

and what should I do first?
sorry i do not understand about this, very thanks

Offline

#5 28-Apr-2013 05:03:24

buny
Member
Registered: 27-Apr-2013
Posts: 10

Re: how to export my project to ftp, not online but with xmapp aplication?

What can ftp opened on another computer with a copy?

Offline

#6 28-Apr-2013 12:46:19

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

Re: how to export my project to ftp, not online but with xmapp aplication?

If your project is on the same host and you don't want embedded it in the web page :
Save your project from Openspace3d (no ftp export). This is readable from the Openspace3d player.

If your project is on another local host and you don't want embedded it in the web page :
Save your project from Openspace3d (no ftp export). Copy all files and resources to this other host in the same files tree. This is readable from the Openspace3d player. (If any, you should install Os3d on this host).

If you want embed the project in the web page :
see the Arkeon's post above.
- go to Export interface;
- enter any ip such as 127.0.0.1
- enter the good path (the same than your internal local server) : for example "site/os3d/myproject"
- enter any other parameters, as you want
- run the export
It fails (it's ok), copy the files such as written by Arkeon

Offline

#7 28-Apr-2013 16:43:47

buny
Member
Registered: 27-Apr-2013
Posts: 10

Re: how to export my project to ftp, not online but with xmapp aplication?

ok, it's great, thank's, i have one project not ftp but save project to .xos and call my project on the web local host, Can be run, without insall os3d on another computer? but by running the player in the same folder project?

Offline

#8 28-Apr-2013 16:56:42

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

Re: how to export my project to ftp, not online but with xmapp aplication?

This is really not recommended.
Player and editor share the libraries.
Player and editor are written in Scol, so Scol should be present in the host.
Finally, this is easier install Openspace3d properly than to do other thing

Offline

#9 28-Apr-2013 17:27:10

buny
Member
Registered: 27-Apr-2013
Posts: 10

Re: how to export my project to ftp, not online but with xmapp aplication?

oke, thank's mr. iri, now i have problem when i move my project on onther sub directory from  C: \ Documents and Settings \ buny \ My Documents \ Scol Voyager \Partition_LocalUsr \  to D: \ data, this script not run call my project, on the html screen show text "Scol navigator Plugin", why about this?

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  <title>Example</title>
  <link rel="stylesheet" href="style.css" type="text/css" />
  <script type="text/javascript" src="scol.js"></script>
  <script type="text/javascript">
    function scolMessageCallback(msg)
    {
      // manage call formated with "keyword param"
      // get first word
      // Warning IE doesn't return the same result as others
      var reg = /^([A-Z0-9]*) ([?]*)/im;
      var word = msg.match(reg);
     
      var param ="";
      if (word)
      {
        //IE !!
        var keyword = word[0];
        //IE force trimm !!
        keyword = keyword.replace(/^\s+|\s+$/g,"");
       
        //Get param value
        param = msg.slice(keyword.length);
        switch (keyword)
        {
        case "OS3DPlayerLoading":
          //document.getElementById("info").innerHTML = document.getElementById("info").innerHTML + param + "<br/>";
          break;
        case "OS3DPlayerError":
          document.getElementById("scoldiv").innerHTML = "<div style=\"background-color:#ffffff; text-align:center; color:#000000;\">" + param + "</div>";
          break;
        //try to execute msg as JS code
        default:
          eval(msg);
        }
      }
      //try to execute msg as JS code
      else eval(msg);
    }
   
    function scolEndCallback()
    {
      //Your code here
      //window.location = "http://mysite.com/end.html"
    }
   
    function scolErrorCallback(div, dlurl, error)
    {
      var n=document.getElementById(div);
      n.innerHTML="<div style=\"background-color:#ffffff; text-align:center; color:#000000;\">The Scol Voyager plugin is not detected, please download it and install from <a href=\"" + dlurl + "\" style=\"color:#0000ff;\">" + dlurl + "</a></div>";
    }
   
  </script>
</head>

<body style="background-color:#$BGCOLOR;">
  <div align="center" id="scoldiv">
    <script type="text/javascript">
      var scolObj = new SCOLObject ("scol", "%5fload+%22tools%2Fos3dplayer%2Fos3dload%2Epkg%22%0amain+%22box.xos%22+%22SAMPLEAPP%22+%22800%22+%22600%22+0", "", "", "800", "600", 2, "scolMessageCallback", "scolErrorCallback", "scolEndCallback");
      scolObj.write("scoldiv");
      scolObj.launch();
    </script>
  </div>
 
  <p align="center"><img src="logo_os3d.png" width="150" height="114"></p>
</body>

</html>

Offline

#10 28-Apr-2013 17:36:56

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

Re: how to export my project to ftp, not online but with xmapp aplication?

You should add a Scol partition to your data folder from the usm.ini file ("disku", such as the actual content)

Offline

#11 28-Apr-2013 17:37:37

buny
Member
Registered: 27-Apr-2013
Posts: 10

Re: how to export my project to ftp, not online but with xmapp aplication?

why on the html show black screen?

Offline

#12 28-Apr-2013 18:01:04

buny
Member
Registered: 27-Apr-2013
Posts: 10

Re: how to export my project to ftp, not online but with xmapp aplication?

oke, thank you very much mr.iri, i must export to exe, to have usm.ini and onther scol partition, but it's large data, Can any other way?

Offline

#13 28-Apr-2013 22:21:05

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

Re: how to export my project to ftp, not online but with xmapp aplication?

To start the exported application from your local web server :
1 - export the app from openspace to ftp with this params :
   host : 127.0.0.1
   directory : os3d/yourproject
   url : http://127.0.0.1/
2 - run the export
3 - copy the content of the My documents/OpenSpace3D/tmp/mkapplet/os3d/yourproject directory to your www/os3d/yourproject
4 - access with http://127.0.0.1/os3d/yourproject/web/index.html

you only need scol voyager to run the web page not the full os3d editor

after that if you want to change the url replace it in the  www/os3d/yourproject/yourproject.txt file

Offline

#14 29-Apr-2013 14:12:14

buny
Member
Registered: 27-Apr-2013
Posts: 10

Re: how to export my project to ftp, not online but with xmapp aplication?

ok, thank you very much mr. iri and mr.arkeon, os3d it's simple and great for me,

Offline

Board footer

Powered by FluxBB