Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Graal Main Forum (English) (https://forums.graalonline.com/forums/forumdisplay.php?f=4)
-   -   New Graal version: 5.11 (https://forums.graalonline.com/forums/showthread.php?t=77049)

Admins 10-05-2007 10:29 PM

New Graal version: 5.11
 
We have released a new Graal version:

- video capture with compression
- fixed bugs with animated graphics (e.g. yoyo-shield)
- new editor functions for text fields (auto-indenting, tab-spaces) like in the RemoteControl
- faster particle engine
- display of 3D objects on 2D servers
- auto-hiding of flash games when a PM or similar is shown above

Full feature list at http://wiki.graal.net/index.php/Crea...es/Client/5.11

gemini2 10-05-2007 10:36 PM

Maybe when I try to download it, it wont display an error once it goes into the installation state now >.>

Skyld 10-05-2007 10:46 PM

Ah, fantastic. You fixed my attachplayertoobj with warp links bug! Thank you.

Crono 10-05-2007 11:27 PM

Seems Houdini and I share the same problem...our GUIs are no longer first starting with the all-blue we want.

The only way to fix it is to start Graal (when its skin is on default), log into the serverlist, change the skin to toons, and then change it back to default so it goes all blue.

Quick video demonstration:


Switch 10-05-2007 11:28 PM

Quote:

Originally Posted by Stefan (Post 1351152)
- video capture with compression

All the complaints people made got ya thinking? ;) Will help many people.
Quote:

- display of 3D objects on 2D servers
Haha I loved that discussion xD What kind of files for 3D are allowed may I ask for people wondering?
Quote:

- auto-hiding of flash games when a PM or similar is shown above
OMG FINALLY! This was very annoying, thanks!

Admins 10-05-2007 11:34 PM

Quote:

Originally Posted by Gerami (Post 1351163)
Seems Houdini and I share the same problem...our GUIs are no longer first starting with the all-blue we want.

The only way to fix it is to start Graal (when its skin is on default), log into the serverlist, change the skin to toons, and then change it back to default so it goes all blue.

At least the video recording is used for reporting bugs now :D
I already knew though. The toon style is used if the user has not selected any special style. It's not easy to detect if the user actually doesn't want any special style though (blue=no style).

Switch 10-05-2007 11:40 PM

have a script that says, in the login screen, something like
"this.reg = <command for styles>;
this.now = <command for styles (toon)>
if (<command for login> == <command for a true login>) {
this.now = this.reg;
}"
you know something like that. But make it detect "Default".

Crono 10-06-2007 12:02 AM

Quote:

Originally Posted by Stefan (Post 1351169)
At least the video recording is used for reporting bugs now :D

Sorry I used the program "Fraps". Graal wouldn't record it, I kept pressing Alt + 6 but didn't actually do anything.

:pluffy:

Switch 10-06-2007 12:05 AM

Quote:

Originally Posted by Gerami (Post 1351182)
Sorry I used the program "Fraps". Graal wouldn't record it, I kept pressing Alt + 6 but didn't actually do anything.

:pluffy:

it's not supposed to show it's recording you know o_O

Crono 10-06-2007 12:07 AM

Quote:

Originally Posted by Switch (Post 1351185)
it's not supposed to show it's recording you know o_O

It didn't actually record, as nothing went into the video folder at the time.

Admins 10-06-2007 12:26 AM

Quote:

Originally Posted by Gerami (Post 1351186)
It didn't actually record, as nothing went into the video folder at the time.

Might not work on the login servers, can check that.
Will be interesting to hear from the first videos made with the new compression stuff :D

xXziroXx 10-06-2007 12:31 AM

Stefan, great updates. I feel like giving you a pizza with extra cheese for fixing the attachplayertoobj error!

Switch 10-06-2007 01:03 AM

Quote:

Originally Posted by Stefan (Post 1351189)
Will be interesting to hear from the first videos made with the new compression stuff :D

You're in for a LOT more work then.

http://forums.graalonline.com/forums...95#post1351195

Googi 10-06-2007 02:13 AM

How about having the video sizes we can select be proportional to the window size (i.e. 80% of window size, etc.)

Twinny 10-06-2007 03:24 AM

set showimg.shape to a 3D shape file, currently supported are 3ds, dts and ft

Yes! Cheeers, Stefan!

[Edit]: and I now have a spinning 3d ship on Litheria :D

[Edit2]: When i first started using opengl full time, i had to download a motherload of files of login server to be able to see anything (guis, fonts etc). Doing switchtoopengl() skips this and I've had a few complaints about people being unable to see gui related stuff.

Angel_Light 10-06-2007 06:06 AM

How does showimg.shape work?
PHP Code:

//#CLIENTSIDE
function onCreated() {
  
switchToOpenGL();
  
showimg.shape1"foo.3ds"this.xthis.y);


correct?

Inverness 10-06-2007 06:56 AM

Quote:

Originally Posted by Angel_Light (Post 1351234)
How does showimg.shape work?
PHP Code:

//#CLIENTSIDE
function onCreated() {
  
switchToOpenGL();
  
showimg.shape1"foo.3ds"this.xthis.y);


correct?

Uh no, findimg(200).shape(stuff);

The only place I've seen showimg as a variable is in the GuiShowImgCtrl since GuiShowImgCtrl.showimg is the actual TShowImg object.

Angel_Light 10-06-2007 06:57 AM

Quote:

Originally Posted by Inverness (Post 1351245)
Uh no, findimg(200).shape(stuff);

The only place I've seen showimg as a variable is in the GuiShowImgCtrl since GuiShowImgCtrl.showimg is the actual TShowImg object.

<3 thanks Invern

Inverness 10-06-2007 07:00 AM

Quote:

Originally Posted by Angel_Light (Post 1351246)
<3 thanks Invern

That script is also wrong for the other part =P
PHP Code:

//#CLIENTSIDE
function onCreated() {
  
with (findimg(1)) {
    
shape "foo.3ds";
    
thiso.x;
    
thiso.y;
  }


There we go.

Twinny 10-06-2007 07:27 AM

I did this to create my rotating space ship (on Litheria)

PHP Code:

//#CLIENTSIDE
function onCreated()
{
  
showimg(201""this.xthis.y);
  
findimg(201).shape "test.3ds";
  
findimg(201).zoom 0.03;
  
setTimer(0.05);
  
this.chat "wee";
}

function 
onTimeout()
{
  
this.yrot += 0.05;
  
this.zrot += 0.05;
  
findimg(201).eulerrotation = {0,this.yrot,this.zrot};
  
setTimer(0.05);



Angel_Light 10-06-2007 07:32 AM

do you guys use the openGL? when i do I lag and my 3ds still doest come up. :[

Inverness 10-06-2007 07:41 AM

Quote:

Originally Posted by Twinny (Post 1351251)
I did this to create my rotating space ship (on Litheria)

PHP Code:

//#CLIENTSIDE
function onCreated()
{
  
showimg(201""this.xthis.y);
  
findimg(201).shape "test.3ds";
  
findimg(201).zoom 0.03;
  
setTimer(0.05);
  
this.chat "wee";
}

function 
onTimeout()
{
  
this.yrot += 0.05;
  
this.zrot += 0.05;
  
findimg(201).eulerrotation = {0,this.yrot,this.zrot};
  
setTimer(0.05);



I can't say I like how you're mixing GS1 (showimg()) format with GS2 format x_x
I would do this for the creation part:
PHP Code:

with (findimg(201)) {
  
thiso.x;
  
thiso.y;
  
shape "test.3ds";
  
zoom 0.03;


Your method may take less space but you really shouldn't mix it up like that. Your method also probably takes more processing power, not that its noticeable.

DustyPorViva 10-06-2007 07:44 AM

Umm, since when is showimg() GS1?

Angel_Light 10-06-2007 07:52 AM

Quote:

Originally Posted by DustyPorViva (Post 1351259)
Umm, since when is showimg() GS1?

format, not actual command

DustyPorViva 10-06-2007 08:03 AM

Ah okay, I guess it would be non-sensible to use showimg to show a shape. I thought he was saying showimg() was considered GS1.

Inverness 10-06-2007 08:04 AM

Quote:

Originally Posted by DustyPorViva (Post 1351259)
Umm, since when is showimg() GS1?

Because it exists for compatibility.

PHP Code:

showimg(1"block.png"2232); 

Is the same as:
PHP Code:

with (findimg(1)) {
  
image "block.png";
  
22;
  
32;


Because GS2 is object-based I think of the second as proper way and the first as just existing for compatibility. Also the second is more readable.

Crow 10-06-2007 09:01 AM

Quote:

Originally Posted by Gerami (Post 1351163)
Seems Houdini and I share the same problem...our GUIs are no longer first starting with the all-blue we want.

The only way to fix it is to start Graal (when its skin is on default), log into the serverlist, change the skin to toons, and then change it back to default so it goes all blue.

Quick video demonstration:


Solution:
1. Go to Graal\levels\guistyles\
2. Create a new text file.
3. Rename it to "default2.wba".
4. Delete your filenamecache, then restart Graal.
5. Go to the options and choose "default2" as your gui style.
6. Thats it >:] There you go with your blue stuff.

Twinny 10-06-2007 11:15 AM

Quote:

Originally Posted by Inverness (Post 1351256)
I can't say I like how you're mixing GS1 (showimg()) format with GS2 format x_x

If it has a gs2 version of the command, it is no less efficient than with (findimg(201)) or findimg(201). In the end, it's also alot quicker script wise to create an image using showimg(). If I did showimg 201, blah.png, this.x, this.y then maybe your point would be valid. The fact that it was available in gs1 doesn't mean it was left for compatibility or any less efficient.

showimg(int, str, float, float) - returns object <- wowzor! returns an object!

Admins 10-06-2007 11:59 AM

Quote:

Originally Posted by Twinny (Post 1351221)
When i first started using opengl full time, i had to download a motherload of files of login server to be able to see anything (guis, fonts etc). Doing switchtoopengl() skips this and I've had a few complaints about people being unable to see gui related stuff.

The OpenGL mode uses true type fonts which need to be downloaded, it doesn't use the windows fonts. Currently the fonts are only uploaded to a few servers, need to make it downloadable from all servers.

Twinny 10-06-2007 12:36 PM

I've just noticed that you need to reconnect to the server after using the switchtoopengl() command. On Litheria, I set it up so you have to say /opengl to switch. When you do however, you have to reconnect before you can see the model. I made the command because of the missing files and increased laggyness some people seem to expierence. Login to check it out :D. I added a few commands to my spinning ship :D

[Edit]: Maybe not as important as I thought. I added a serverwarp() right after it and it works now.

Crono 10-06-2007 01:56 PM

Quote:

Originally Posted by Crow (Post 1351271)
Solution:
1. Go to Graal\levels\guistyles\
2. Create a new text file.
3. Rename it to "default2.wba".
4. Delete your filenamecache, then restart Graal.
5. Go to the options and choose "default2" as your gui style.
6. Thats it >:] There you go with your blue stuff.

I LOVE YOU

edit- everytime i restart Graal it goes back to default

Angel_Light 10-06-2007 07:59 PM

I'm still having probs with the 3d object. :/

PHP Code:

//#CLIENTSIDE
function onCreated() {

  
showimg1NULLthis.xthis.y);
  
findimg1).shape "sat.3ds";
  
this.chat "foo";
}

function 
onPlayerChatschat) {
  if ( 
chat == 1)
    
switchToOpenGL();

  if ( 
chat == 2)
    
serverWarp"Varia");

  
onCreated();



Twinny 10-07-2007 06:25 AM

/find sat.3ds

Remember, you have to add a new line to the folder configuration to use 3ds files. Also, use a higher index...perhaps 201.

Inverness 10-07-2007 07:42 AM

Quote:

Originally Posted by Twinny (Post 1351282)
<snip>

I don't care enough to argue with you, so lets just ask Stefan.

Stefan! Which method is more efficient and proper in GS2? "showimg()" or "with (findimg()) {}"?

Crow 10-07-2007 10:12 AM

Quote:

Originally Posted by Gerami (Post 1351292)
I LOVE YOU

edit- everytime i restart Graal it goes back to default

No problem eh. That problem with going back to default is weird though. I don't have that...
Try to check your game_config.txt in your Graal folder and look for the "defaultguistyle" line. Thats the line which defines the gui style that is used. Says default2.wba for me, even after Graal restart, maybe you can try to change it there ;P

zokemon 10-07-2007 10:49 AM

I love the updates. Good job and thank you! :)

Quote:

Originally Posted by Inverness (Post 1351499)
I don't care enough to argue with you, so lets just ask Stefan.

Stefan! Which method is more efficient and proper in GS2? "showimg()" or "with (findimg()) {}"?

That's just about convention, really. showimg() is just a shortcut so you don't have to enter a bunch of variable assignments.

Angel_Light 10-07-2007 03:20 PM

sat.3ds is downloAadable

DustyPorViva 10-07-2007 08:22 PM

So does this mean you're going to allow .3ds as attachable files?

Stephen 10-08-2007 06:25 AM

It would be nice to see a player-made video of the 3D stuff.

Skyld 10-09-2007 12:43 PM

Quote:

Originally Posted by zokemon (Post 1351506)
That's just about convention, really. showimg() is just a shortcut so you don't have to enter a bunch of variable assignments.

showimg() is probably a lot more clearer in scripts, since it is maintaining a certain amount of semantic similarity with old GScript.

As much as anything it seems odd to do with (findimg()) on an object that does not exist yet; you do not instantiate a new player when you do findPlayerByCommunityName() or a new NPC when you do findNPC() and I do not see why images should be any different.


All times are GMT +2. The time now is 12:28 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.