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.
how to export my project to ftp, not online but with xmapp aplication,
Offline
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
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
What can ftp opened on another computer with a copy?
Offline
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
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
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
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
Offline
why on the html show black screen?
Offline
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
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
ok, thank you very much mr. iri and mr.arkeon, os3d it's simple and great for me,
Offline