gemot encubed

gemot encubed (http://forums.novelnews.net/index.php)
-   Production & Help (http://forums.novelnews.net/forumdisplay.php?f=60)
-   -   ONScripter port to MotoLinux (http://forums.novelnews.net/showthread.php?t=35724)

Pantamorph 2009-10-31 09:21

Setwindow problem fixed
Screens of Mion's build ported to Z6:
http://img692.imageshack.us/img692/4081/45514630.png
http://img263.imageshack.us/img263/5696/27019773.png
What's left is the nospace problem, I checked textgosub command, not sure it's causing this bug, since this command defines a label to jump to at a mouseclick
Other than that most bugs are fixed and when I manage to fix this one I'll upload a release!

Message 2009-10-31 09:36

Quote:

Originally Posted by Pantamorph (Post 64114)
What's left is the nospace problem, I checked textgosub command, not sure it's causing this bug, since this command defines a label to jump to at a mouseclick

If the game uses that command, there is a strange thingie that causes problems... Alright, let me dig into the logs and see if I can figure out what that was.

Pantamorph 2009-10-31 09:42

what logs do you need?
telnet? Compilation?
Generated log:
../../textinput/framework/engine/common/KbInputFieldAdapter.cpp:ZInputFieldAdapter:260: ZInputFieldAdapter: ok, me=0x9feb0
../../textinput/framework/engine/common/KbEditContext.cpp:KbEditContext:390: register application exit function
setkinsoku: "ЃvЃxЃjЃnЃpЃAЃBЃCЃDЃEЃHЃIЃRЃSЃTЃUЃXЃ[","ЃuЃwЃiЃmЃo"
hide splash: -1
map framebuffer at 0x4358d000 (size 262144)
landscape mode
Quitting...
~SDL_QWin(): chau
../../textinput/framework/engine/common/KbEditContext.cpp:appExit:358: client application is exit
../../textinput/framework/engine/common/KbEditContext.cpp:saveData:465: data is not dirty

Message 2009-10-31 10:50

Heh, no, I meant my own IRC logs. I discussed the issue in some channel somewhere.

I've found it now. As it turns out, the issue I was thinking of wasn't your problem at all, it was something entirely different. My apologies. I guess I'll post the stuff here anyway, for whoever's interested:


The problem was that using the textgosub function breaks out of halfwidth (one-byte) text mode:
Quote:

[14:48] The command doesn't reinitialize the halfwidth interpretation if it's called from the middle of a text line (say, during a @ waitstate instead of a \ waitstate).

As an example, let's take this script:
Code:

`"Uhuhu.@ Yes, this is Charon's ferry terminal.@ I have been waiting for you!"\
`"Hm. I am wrapped in ominous thoughts."\

You would expect the game to render this as follows:
Quote:

"Uhuhu. Yes, this is Charon's ferry terminal. I have been waiting for you!"
And the next page:
Quote:

"Hm. I am wrapped in ominous thoughts."
In reality, when using textgosub to define a custom mouseclick function, it was rendered as follows:
Quote:

"Uhuhu."Hm. I am wrapped in ominous thoughts."
What happened is that because the textgosub breaks out from halfwidth mode, all the text after 'uhuhu' was read as commands, not game text. Unable to make sense of the commands, ONS-en just skipped it and continued with the next line of game text. I had to reopen halfwidth mode with `:
Quote:

[14:49] So I just started a new line after the @ waitstate, starting with a new ` char. Normally this would make the the newline also show ingame, but apparently texec makes ONS ignore the newline.


So the script ended up looking like this:
Code:

`"Uhuhu.@
` Yes, this is Charon's ferry terminal.@
` I have been waiting for you!"\
`"Hm. I am wrapped in ominous thoughts."\


Pantamorph 2009-11-02 04:31

Oh well, guess I'll try to fix it myself
Anyway, this bug doesn't remove any letters so pretty much the text is readable and I'm eager to make a beta (For testing the fontsize & stuff)
So all MotoLinux users won't wait long

2009-11-02 05:50

Oh, with textgosub games, you can deal with the issue Message mentions by surrounding the @s with ``s:
Code:

`"Uhuhu.`@` Yes, this is Charon's ferry terminal.`@` I have been waiting for you!"\
Pantamorph, can you show one of the script text commands that make the no-space bugs? I'd like to see what's going on.

Thanks,
Uncle Mion

Pantamorph 2009-11-02 06:13

The whole text is featured without spaces
Here's some example sentences:
`"My health was never particularly good, sure..."\
`But I was able to attend primary school like anyone else.
`In the summer holidays I was able to play till the sun burnt me black.\
`It was June, just after I entered middle school.@
`
`It was just before the midterm tests.\
`It was the day after I ordered a swimming costume for the summer.
`That was the first day I was admitted to hospital.\
`It was a cold, unpleasant, drizzly day.\
`Shrouded by the rainy sky, murky, white, and damp.\

Pantamorph 2009-11-03 02:47

Beta's out
You can find it here
Support topics:
Motofan (Russian)
ModMyMoto (Spanish)
Sorry I didn't post this yesterday :(

2009-11-03 04:30

Aha! I finally figured it out. You need to add -DENABLE_1BYTE_CHAR to your DEFS in the Makefile.

Sorry I didn't notice that earlier ^^;

Uncle Mion

Pantamorph 2009-11-03 06:02

OK, I'll try it
Thanks!

Pantamorph 2009-11-04 04:53

It worked, what still needs to be done is autohide, though I don't know if we'll succeed with that!


All times are GMT -8. The time now is 14:49.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2022, vBulletin Solutions, Inc.