Here's also a nice function for a class.
contains Formal name, core name, HEX, RGB, HSL, HSV. Here's an example of it withe the old palette. Attached has all body colors
Would it be possible to use RGB? These colors kinda suck. I like the improvement and the fact that it was released before v6 was complete but RGB would open up so many more unique body combinations and I'm sure the 10000000 people soon to be playing on facebook would appreciate it.
Quote:
Originally Posted by fowlplay4
Hmm, while the extra colors are nice, our need for more would be completely satisfied by being able to specify hex (#abcdef) colors.
Quote:
Originally Posted by DustyPorViva
Since you have these in already, I imagine you're already parsing a predefined list of RGB/HEX codes, so couldn't you allow us to use raw hex instead?
Either way, the fact that we got new colors = yay! (I did find a shade of orange!)
Can we get this before v6 is released?
__________________
Quote:
Originally Posted by Loriel
Seriously, you have ****-all for content and you're not exactly pulling in new developer talent, angling for prestigious titles should be your last concern.
as well as triggeraction(x,y,w,h,persistent,action,params);
Where persistent is a boolean for whether it keeps going after it hits an NPC(since an NPC on top can "steal" a triggeraction).
Currently on the latest beta, if I'm logged on to a player-world (happens on both Zodiac and Era) and click close on the Window in the top-right Graal quits responding and I have to force close it through Task Manager or by repeatedly clicking close until the Windows 'Program has stopped responding' window shows up.
PHP Code:
Problem signature:
Problem Event Name: AppHangB1
Application Name: Graal.exe
Application Version: 5.3.2.4
Application Timestamp: 4d9a0bdc
Hang Signature: d431
Hang Type: 0
OS Version: 6.1.7600.2.0.0.256.1 (Windows 7 64-bit Ultimate)
Locale ID: 1033
Additional Hang Signature 1: d431f4d14d7a1087199613e422516523
Additional Hang Signature 2: dc32
Additional Hang Signature 3: dc323a9c24410c45175eff1f4811623e
Additional Hang Signature 4: d431
Additional Hang Signature 5: d431f4d14d7a1087199613e422516523
Additional Hang Signature 6: dc32
Additional Hang Signature 7: dc323a9c24410c45175eff1f4811623e
Currently on the latest beta, if I'm logged on to a player-world (happens on both Zodiac and Era) and click close on the Window in the top-right Graal quits responding and I have to force close it through Task Manager or by repeatedly clicking close until the Windows 'Program has stopped responding' window shows up.
PHP Code:
Problem signature: Problem Event Name: AppHangB1 Application Name: Graal.exe Application Version: 5.3.2.4 Application Timestamp: 4d9a0bdc Hang Signature: d431 Hang Type: 0 OS Version: 6.1.7600.2.0.0.256.1 (Windows 7 64-bit Ultimate) Locale ID: 1033 Additional Hang Signature 1: d431f4d14d7a1087199613e422516523 Additional Hang Signature 2: dc32 Additional Hang Signature 3: dc323a9c24410c45175eff1f4811623e Additional Hang Signature 4: d431 Additional Hang Signature 5: d431f4d14d7a1087199613e422516523 Additional Hang Signature 6: dc32 Additional Hang Signature 7: dc323a9c24410c45175eff1f4811623e
ok so today my outdated v6 didn't start (nothing happens when I try to open graal, it worked fine yesterday) can I get a link to the updated version?
edit: n/m I just downloaded the normal version
Currently on the latest beta, if I'm logged on to a player-world (happens on both Zodiac and Era) and click close on the Window in the top-right Graal quits responding and I have to force close it through Task Manager or by repeatedly clicking close until the Windows 'Program has stopped responding' window shows up.
I've narrowed down what was causing my problem to this:
How to reproduce:
1. Add script as a weapon
2. Click Freeze Graal
3. Graal proceeds to freeze.
Alternate way:
1. Apply the script twice while logged in.
Graal will then refuse to close properly.
PHP Code:
//#CLIENTSIDE
function onCreated() {
new GuiWindowCtrl("Shell") {
x = y = 0;
width = 100; height = 100;
canresize = canmaximize = canminize = false;
profile = GuiBlueWindowProfile;
new GuiButtonCtrl("ShellFreezeButton") {
x = 10;
y = 24;
width = 80;
height = 70;
text = "Freeze Graal";
profile = GuiBlueButtonProfile;
}
}
playlooped("http://zodiacgraal.serverroom.us:7926");
}
function ShellFreezeButton.onAction() {
stopmidi();
}
Not quite sure of that, I remember reading somewhere to use stopmusic() with music streams.
Well free to try out my code and you'll see the issue. The combination of a GUI action and stopmidi cause the freezing, and if you use the playlooped (with an invalid URL) function the client will refuse to close properly regardless.
He's reporting a bug which causes the client to crash. Suggesting that he uses another method is not a solution.
wrong interpretation... I thought stopMusic() treated music a little different than stopMidi() therefore maybe making it not crash when you click the button.
__________________ Time is the fire in which we burn...
Up, Up, Down, Down, Left, Right, Left, Right, B, A, Select, Start! Now I got 99 LIVES!!!
The new version 5.325 has been uploaded to http://www.graalonline.com/downloads...al_windows.zip :
- Shouldn't freeze on closing mp3/web streams anymore (and on closing the game)
- Improved the speed of GuiMLTextCtrl.reflow(), especially for syntax highlighting
- Fixed some problems where multi-line text in external windows was not correctly refreshed
- Doesn't deselect text if a text field loses the focus or you copy text from it
- Improved support for wba-styles: uses them for drawing GuiTextEditSliderCtrl, and reads the color of the start bar text (GuiTextCtrl.stylesection="Clock"); you can see a new gui style VPlusBlue in the options
- added Verdana bold to the login server
Sort of off topic but as much as I'm liking the frequent updates recently, it would be nice to have an official thread where you edit the top post with new version updates.
The stream freeze or the closure freeze? I've tested with your scripts
Both. The stream freeze occurs when a GUI action and playlooped/stopmidi happens at the same time.
The stream only has to play once, and then the closure freeze occurs. Are there any debugging functions I could run to help narrow down the issue for you?
Sort of off topic but as much as I'm liking the frequent updates recently, it would be nice to have an official thread where you edit the top post with new version updates.
I know graal expects a string, but by graal magic it can accept an array. I think it just looks better when I have sometimes do logic in the position and stuff, just habit and preference.
__________________ Time is the fire in which we burn...
Up, Up, Down, Down, Left, Right, Left, Right, B, A, Select, Start! Now I got 99 LIVES!!!
I know graal expects a string, but by graal magic it can accept an array. I think it just looks better when I have sometimes do logic in the position and stuff, just habit and preference.
No, I mean why do you have a space padding the opening brace and not the closing one? It looks ridiculous.
STRETCHXEFFECT and STRETCHYEFFECT in ganis don't flip the image when using negative values.
Quote:
Originally Posted by Crow
But this negative stretch thing really bugs me. [...]
Edit: For whatever reason, it now works (after deleting my Graal v6 folder and just firing up a fresh Graal.exe). It does show the flipped sprite, so that's cool. However, is it possible that there are some kind of quirks done to the rotation math after flipping a sprite? It seems my flipped and rotated sprites are 180 degrees off, while the non-flipped rotated sprites are still fine.
Bringing this up again. I'd really like a statement from you, Stefan, concerning this issue. To me it seems that the math done when flipping and rotating something differs from v5. My flipped and rotated sprites are always 180° off compared to v5.
So, is this actually a bug, or is this intended behavior? If it's the latter, I'll just fix my code. But you didn't say anything about it yet, so I don't know.
Bringing this up again. I'd really like a statement from you, Stefan, concerning this issue. To me it seems that the math done when flipping and rotating something differs from v5. My flipped and rotated sprites are always 180° off compared to v5.
So, is this actually a bug, or is this intended behavior? If it's the latter, I'll just fix my code. But you didn't say anything about it yet, so I don't know.
It is intended. A few months ago the calculations have been fixed. Before it was basicly impossible to use stretchx/stretchy and rotation predictible at the same time.
About showpoly in external windows: We know of it, it will be added sometime but not very soon.
It is intended. A few months ago the calculations have been fixed. Before it was basicly impossible to use stretchx/stretchy and rotation predictible at the same time.
Alright. Thanks!
Edit: At first I thought sounds in ganis just don't work when using showani, but this problem seems to be a little more complicated. Let me explain.
On Atlantis I'm using a gani containing a particle script and a sound for bush leaves that "explode" into the air when you destroy a bush. Now, to make things smooth, I'm displaying it on the clientside using findImg(). This doesn't seem to work anymore with v6, so I tried some stuff. First I tried doing the exact same thing in a weapon NPC. This, to my surprise, worked. Then I thought it'd have something to do with level NPCs, so I created one that basically does the exact same thing as my bushes, just a little bit differently:
PHP Code:
//#CLIENTSIDE
function onPlayerChats() {
with (findImg(200)) {
x = mousex;
y = mousey;
layer = 1;
dunno if this is the right spot for this request since it's a server request, but can we get a rename file function on the serverside?
A few months back I tried to batch rename files on UN to use underscores instead of periods to fix an issue for mac users, but I ended up having to do it by loading the image into a TDrawingPanel and then saving it again, which broke transparencies and stuff.
dunno if this is the right spot for this request since it's a server request, but can we get a rename file function on the serverside?
A few months back I tried to batch rename files on UN to use underscores instead of periods to fix an issue for mac users, but I ended up having to do it by loading the image into a TDrawingPanel and then saving it again, which broke transparencies and stuff.
Also didn't work for GIFs/MNGs obviously
Quote:
Originally Posted by scripthelp
movefile(str, str) - returns boolean - moves a file from source (first parameter) to destination (second parameter)