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 17-Sep-2024 16:22:11

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

very embarrasing running scol files viewing logs [solved]

it's been so long I've forgotten some basics

I installed os3d on my computer from https://www.openspace3d.com/downloads/O … d%20Editor

I set the setup>:maintenance window in scol voyager to enable logs files>all, and I checked all the boxes except for "list scol extensions and allow the cache the choice between the full mode or minimal mode", which was greyed out

I set my antivirus program, webroot secure anywhere, to "allow" Scol.exe in C:\Program Files\Scol Voyager

I created a folder named "hello" in the Partition_LockedApp and in the Partition_LocalUsr and put the same two files, hello.scol and hello.pkg, in both of these folders in the "hello" folder.

hello.scol reads:

_load "hello/hello.pkg"

main ""

hello.pkg reads:


fun main()=
    _showconsole;;


Windows is set to automatically open .scol files with Scol.exe in C:\Program Files\Scol Voyager

When I click on hello.scol, nothing happens. Any pointers?

the files are here

Thanks!
-Dan

Last edited by hebdemnobad (6-Oct-2024 15:28:47)

Offline

#2 17-Sep-2024 19:14:12

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

Re: very embarrasing running scol files viewing logs [solved]

Hello, by default the console is disable.
Also the user partition is in my documents/Openspace3d
No need to duplicate the files in other partitions.

Offline

#3 18-Sep-2024 02:14:57

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

Re: very embarrasing running scol files viewing logs [solved]

the console wouldn't start up until I used the voyager to open advanced>control panel, then I ran the hello.scol script, which opened a control panel window. I pressed "Console" , which showed the output on the console. I shut that instance of the voyager down, and now when run hello.scol, the console is displayed. good enough for me!

Offline

#4 24-Sep-2024 14:45:12

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

Re: very embarrasing running scol files viewing logs [solved]

hi i have everything working now (.scol files get the .pkg files to run code, including showing the console)...however when I have an error in my code, the console won't display at all, and I can't seem to find the relevant log file for each individual .pkg run.  any pointers are welcome.

-Dan

Offline

#5 25-Sep-2024 00:52:29

samiux
Member
Registered: 4-May-2018
Posts: 318

Re: very embarrasing running scol files viewing logs [solved]

Hi hebdemnobad

Being a beginner on Scol I can't really help you but I am an intermediate in programming with plugins on OpenSpace3D and I would now like to learn programming in Scol in order to create my own plugins.

Offline

#6 25-Sep-2024 01:58:22

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

Re: very embarrasing running scol files viewing logs [solved]

samiux wrote:

Hi hebdemnobad

Being a beginner on Scol I can't really help you but I am an intermediate in programming with plugins on OpenSpace3D and I would now like to learn programming in Scol in order to create my own plugins.

Study Huet's scol tutorial pdf and build the files he describes for the basic data types and structures and logic flow.

Also open up the .pkg files from the tutorials on redmine to see how scol creates ui objects, various built in classes, then learn how to make your own classes with the struct command and you will be on your way.
,

Offline

#7 25-Sep-2024 02:22:50

samiux
Member
Registered: 4-May-2018
Posts: 318

Re: very embarrasing running scol files viewing logs [solved]

Can you give me the link to Huet's pdf on Scol?

I code in Scol on Notepad ++ but how do I run my Scol code unless OpenSpace3D offers an option for that.

Otherwise thanks for the advice. I will take the time to make them.

Offline

#8 25-Sep-2024 02:38:09

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

Re: very embarrasing running scol files viewing logs [solved]

samiux wrote:

Can you give me the link to Huet's pdf on Scol?

I code in Scol on Notepad ++ but how do I run my Scol code unless OpenSpace3D offers an option for that.

Otherwise thanks for the advice. I will take the time to make them.

i think there was work on a plugit that could run arbitrary code at some point.

Link:

https://www.sylvain-huet.com/rsc/scol/T … 11_eng.pdf

I code scol with bluefish.
I think arkeon has scol syntax highlighting plugin for it... send me your email and I'll email it to you if you want it sooner.. The install instructions are on redmine.

Offline

#9 25-Sep-2024 18:24:08

samiux
Member
Registered: 4-May-2018
Posts: 318

Re: very embarrasing running scol files viewing logs [solved]

I have never used BlueFish for coding but I should try it

It would be nice to have the Scol extension for BlueFish

Offline

#10 25-Sep-2024 19:17:07

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

Re: very embarrasing running scol files viewing logs [solved]

send me a pm with your email in it, or send me an email from your profile page i'll send you the file


samiux wrote:

I have never used BlueFish for coding but I should try it

It would be nice to have the Scol extension for BlueFish

Offline

#11 30-Sep-2024 18:22:31

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

Re: very embarrasing running scol files viewing logs [solved]

hebdemnobad wrote:

hi i have everything working now (.scol files get the .pkg files to run code, including showing the console)...however when I have an error in my code, the console won't display at all, and I can't seem to find the relevant log file for each individual .pkg run.  any pointers are welcome.

-Dan

hi respectfully bumping

Offline

#12 30-Sep-2024 18:24:08

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

Re: very embarrasing running scol files viewing logs [solved]

hebdemnobad wrote:

hi i have everything working now (.scol files get the .pkg files to run code, including showing the console)...however when I have an error in my code, the console won't display at all, and I can't seem to find the relevant log file for each individual .pkg run.  any pointers are welcome.

-Dan

hi respectfully bumping

Offline

#13 6-Oct-2024 15:28:20

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

Re: very embarrasing running scol files viewing logs [solved]

nevermind i found the log files in:

C:\Users\usernamewhatever\AppData\Local\Scol Voyager\Logs

Offline

Board footer

Powered by FluxBB