Developer forums (C::B DEVELOPMENT STRICTLY!) > Development

My wizard doesn't work anymore!

(1/2) > >>

Trikko:
I wrote a custom wxWidgets wizard to support 5 different compilers i use. Recently i've updated code::blocks and it doesn't work anymore. I've registered plugin on global config.script. Errors:

1) All declarations of functions and vars are broken (fixed changing local vars type to local and using "function" on function declaration)
2) When i start the wizard it tells me: "GetInstance : invalid argument type".

How can i solve error #2 ?

mandrav:

--- Quote ---Recently i've updated code::blocks and it doesn't work anymore.
--- End quote ---

What was the previous revision, where your scripts worked? Scripts-related code hasn't been touched for many revisions now, AFAIK.
With that info missing, I don't think anyone can help you.

Trikko:

--- Quote from: mandrav on August 31, 2006, 02:14:00 pm ---
--- Quote ---Recently i've updated code::blocks and it doesn't work anymore.
--- End quote ---

What was the previous revision, where your scripts worked? Scripts-related code hasn't been touched for many revisions now, AFAIK.
With that info missing, I don't think anyone can help you.


--- End quote ---

Eh, i don't remember. It was before august, maybe july too... It was a long time ago when wizard and old template exist togheter.

By the way function was declared in this way:

void myfunc(wxString @test)
instead of
function myfunc(test)

But the error #2 seems to be a runtime error. If not it should report me the line where the error is found.

mandrav:

--- Quote ---By the way function was declared in this way:

void myfunc(wxString @test)
instead of
function myfunc(test)
--- End quote ---

That's why I 'm asking. It must be much earlier than July.
The syntax of your scripts declares that they were written for Angelscript. We have converted to using Squirrel for quite some time now, somewhere around March IIRC.

Luckily, conversion is not *too* much of a hassle.

[*] Squirrel is typeless: remove all function return types and replace them with "function". Also remove all function arguments' types and leave just the arguments vars.
[*] Squirrel doesn't have autohandles (the @ symbol). Remove that too.

You can also check one of the existing scripts to see how they 're written.
Documentation for Squirrel is at its site: http://www.squirrel-lang.org

If you still have problems, post your script here.

Trikko:

--- Quote from: mandrav on August 31, 2006, 02:38:00 pm ---
That's why I 'm asking. It must be much earlier than July.
The syntax of your scripts declares that they were written for Angelscript. We have converted to using Squirrel for quite some time now, somewhere around March IIRC.


--- End quote ---

Probably i wrote script on march and i've created some project, then i didn't create any project but i've just worked on old ones so i've never noticed the problem.


--- Quote ---Luckily, conversion is not *too* much of a hassle.

--- End quote ---

LOL. Probably i can't explain better the problem. I've just realized this. I've just converted syntax where needed. But now there's a strange "GetInstance : etc... etc... " (as reported before), that seems not to be a syntax-convertion error...

Navigation

[0] Message Index

[#] Next page

Go to full version