gemot encubed  

Go Back   gemot encubed > Gemot > Technical Issues

Technical Issues For bug reports, problem solving, and help running Japanese software.

Reply
 
Thread Tools Display Modes
  #1  
Old 2006-09-13, 20:27
Starchanchan's Avatar
Starchanchan Starchanchan is offline
Obsessive
 
Join Date: Jul 2006
Location: in the rainstorm
Posts: 220
Send a message via AIM to Starchanchan Send a message via MSN to Starchanchan
Default Clicking not working in ONScripter?

Huu... I'm slowly attempting to make a patch for a Hikaru no Go BL game, and I'm having a bit of an issue. At certain points, you get an image of a go board, and you have "a" and "b" spots on the board; you click on whichever you think is right, and the stone will appear on the board. If you click anywhere else other than those spots, the instructional text repeats. My problem is, the game's made wih NScripter, so when I began to test it with ONScripter, for some reason, clicking on the board's spots doesn't register- no matter where I click, it simply keeps repeating the instructions, as if I had clicked on a non-a/b spot. The code for one such instance looks like this:

*gogame_2

lsph 502,":a;sys\q2.bmp",187,37
;Q2
lsph 413,":a;sys\kuro.bmp",370,40
lsph 414,":a;sys\kuro.bmp",390,40

vsp 502,1 :print 2
textclear
saveon
`It's black's turn.
`Where should black be played in order to kill white?\

clickpos %0,%1

if %0>=390 && %0<=410 && %1>=40 && %1<=60 goto*huseikai_2

if %0>=370 && %0<=390 && %1>=40 && %1<=60 goto*seikai_2

gosub *kankeinai_all:goto *gogame_2



*seikai_2


vsp 413,1 :print 2

wait 300
vsp 413,0:print 1:vsp 502,0:print 1
vsp 414,0:print 1


goto *seikai_all


*huseikai_2

vsp 413,0 :print 3
vsp 414,1 :print 2

wait 300
vsp 414,0:print 1:vsp 502,0:print 1
vsp 413,0:print 1
goto *huseikai_all



Any help would be appreciated @_@ thankyou~
Reply With Quote
  #2  
Old 2006-09-14, 00:42
Haeleth's Avatar
Haeleth Haeleth is offline
Ex-boss
 
Join Date: Mar 2003
Location: England
Posts: 2,106
Default

When you have a bug like this, the first thing to do is always to check the debug output (on Windows look in stderr.txt, on other platforms run the game from a console/terminal window).

In this case I rather suspect that will reveal that ONScripter does not understand the clickpos command. ^^

Try replacing it with getmousepos, which ONScripter does support; it is basically equivalent unless the player moves their mouse very quickly after clicking.
Reply With Quote
  #3  
Old 2006-09-14, 09:39
Starchanchan's Avatar
Starchanchan Starchanchan is offline
Obsessive
 
Join Date: Jul 2006
Location: in the rainstorm
Posts: 220
Send a message via AIM to Starchanchan Send a message via MSN to Starchanchan
Default

Ahhh, that was indeed the problem, and replacing it fixed it! Thankyou! ^^
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
To get Kanon working on Windows 7 duckweed2005 Technical Issues 2 2010-04-21 02:00
Working with Text and Binary Avisch Production & Help 0 2010-02-07 19:21
Working on a script... Wererat42 General Discussion 13 2007-10-11 20:11
Planetarian Full Not Working Saga Technical Issues 16 2005-09-06 16:42
XKanon - music not working darklegion Technical Issues 7 2005-01-12 05:59


All times are GMT -8. The time now is 22:45.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.