• Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

World: r4wp

[Ann-Reply] Reply to Announce group

Jerry
7-May-2012
[81]
I've send Carl an email about my R3 book in China and Taiwan. Not 
sure he got the email or not.
james_nak
7-May-2012
[82x2]
Jerry, how wonderful that is. Thank you for doing that.
Gregg, thanks for the Split, I'll be using that!
DocKimbel
7-May-2012
[84]
Congratulation Jerry, I'll do my best to get a first Red alpha out 
this month, so you can add it to the book.
Arnold
7-May-2012
[85x2]
Sorry DocKimbel that I did contribute yet, but I fear I do not understand 
GitHub, I try to find a button to accept changes that were committed 
since I forked Red but I only find the pull request that I suspect 
to be for changes I made to be pulled by others. That could be a 
bad idea ;-)
I try to find a nice tutorial for Git(hub)
Kaj
7-May-2012
[87x2]
You need to update your repository from your local command line or 
Git GUI
You're right about the pull request
Arnold
29-Jun-2012
[89x3]
Thanks to Maxim the first bug was already found and corrected in 
the mirror game.
Continuing from announce, maybe a world owner can cut&paste from 
there.

The loop is the check-oplossing (check-solution, opgelost=solved) 
When the first pair doesn't match it is not a solution. This is the 
working I meant. Better to say functionality.
Did you want good ones to be green or false ones to become red? Both? 
Red-green colorblindness issue for 10% of the popularity.
Maxim
29-Jun-2012
[92]
but the successful ones in bold white, they will stick out.  it makes 
them look lit as if a little bulb was lighting the number.
Arnold
29-Jun-2012
[93]
so font/color: white it is, how to do the bold?
Maxim
29-Jun-2012
[94x2]
font/style: 'bold


or font/style [bold]  which you can pair with italic like so  font/style: 
[bold italic]
assuming you are using faces for the text, in AGG its a bit more 
work.
Arnold
30-Jun-2012
[96]
Mmm, I wanted to change the font on  just 1 label, but ALL labels 
in the app now have font color white.
Kaj
30-Jun-2012
[97x2]
That's because font objects and other attribute objects are shared 
by widgets. It's one of the standard starter gotchas
To change specific faces, copy the font object
Arnold
1-Jul-2012
[99]
That crossed my mind too, using copy of something but I couldn't 
find it, probably because I don't have a suitable font object or 
two to copy yet :-)
Endo
2-Jul-2012
[100]
Very nice game! I got "Bad font style!" several times at the start. 
Which font is used?
Cyphre
2-Jul-2012
[101]
hmm, the game doesn't work here:
** Script Error: labelfont has no value
** Where: zet-label-kleur
** Near: panel-rechts/pane/:p/font: labelfont
either onoff [panel-rechts/pane/:p/font: lbl-r/font]
>>

Any ideas?
Endo
2-Jul-2012
[102x2]
there is "labelfont" word in the script? I think there is a end-of-line 
problem on your download.
** "there is NO labelfont word in the script"
Cyphre
2-Jul-2012
[104x2]
I didn't change anything with the source.  Even this doesn't work:
>> do http://arnoldvanhofwegen.com/stuff/mirror.rebol
connecting to: arnoldvanhofwegen.com
Script: "Mirrorgame" (none)
** Script Error: labelfont has no value
** Where: zet-label-kleur
** Near: panel-rechts/pane/:p/font: labelfont
either onoff [panel-rechts/pane/:p/font: lbl-r/font]
>>
I can see the labelfont variable in the script at least twice but 
without any definition
Pekr
2-Jul-2012
[106x2]
mine runs, but just complains about the bad font style ..
View 2.7.8 on Vista 32 bit here ...
Henrik
2-Jul-2012
[108]
I see labelfont	 twice in the source code, where neither is a definition.
Rebolek
2-Jul-2012
[109x2]
Cyphre, that's strange, I did the same (do http://arnoldvanhofwegen.com/stuff/mirror.rebol) 
and it works for me.
ah, now I get your error. Maybe Arnold changed something in the code?
Endo
2-Jul-2012
[111x2]
hmm, it wasn't there when I download it. Now I re-download and there 
is labelfont and it has no value.
but I simple removed it and it worked well.
now bad font style error gone too.
Cyphre
2-Jul-2012
[113]
removal
 of the labelfont worked, thanks Endo
Arnold
2-Jul-2012
[114]
I changed the version for the one I had this morning and it worked 
under winXP maybe something went wrong uploading. I'll have a quick 
look
Endo
2-Jul-2012
[115]
it is a bit difficult to see which one is solid, a different color 
might be better. It's a great game by the way.
Arnold
2-Jul-2012
[116]
I have to change it but first the kids to bed.
Endo
2-Jul-2012
[117]
:))
Arnold
2-Jul-2012
[118x4]
Remove the bad lines version 1.04 works for me here. Mailed and uploaded 
just in between some modifications to clean things up a bit. Sorry 
for the inconvenience!
I think I know the source of this problem! The script did work on 
my machine without ANY error!
Why?
Because on MY REBOL environment labelfont still had a valid definition! 
It was still in memory from the earlier execution of the script. 
If tomorrow I start it again it will fail too!
Where is everybody?? 
(-:
Rebolek
2-Jul-2012
[122]
Arnold, I looked at the script (btw very cool game!) and you can 
replace nested 'either in zet-label-kleur with 'case for better readability.
Arnold
2-Jul-2012
[123x7]
@Rebolek Thanks, that wil be on the list together with line width 
and color and font-size preferences, a multilingual help function 
and a resize mechanism. ((:
I am not fond of case/switch statements because for every language 
it is doing things differently then you expect, sometimes you need 
break statements because otherwise the next statement will perform 
too and other confusing stuff (not) happening. Rebuilding switches 
to nested ifs mostly solves these problems for me.
Of course REBOL's 'case you mean 'switch (REBOL 3 knows a 'case)
is pretty straightforward
To be honest, I liked the eithers better than the switch/default 
with an extra default block. I like the :p part of the script too, 
maybe it is better to rewrite this as :P
And switch is missing its case argument.. back to the eithers it 
is...
can't play the game like this :))
Henrik
2-Jul-2012
[130]
And switch is missing its case argument
 - what do you mean by this?