Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - Synthetic

#31
If you haven't already, try updating to the latest version. I just ran it on 4.051 with no errors.
#32
Have you checked your code for any typos? Also, are you using the latest version of GLBasic? If you supply your code, I can compile it on my end and see if I get the same results.
#33
You do the same as with everyone else in the GLBasic community! =)
#34
Announcements / New Update
2006-Dec-14
PNG support?! You make me a very happy person. =)
#35
To remove a sprite from memory just use loadsprite with a file name that doesn't exist. IE
LOADSPRITE "does_not_exist.bmp",1

To change the image of a sprite just use a different ID# of another loaded sprite. You can also change it by specifying LOADSPRITE to load a different image at the time but this is not really worthwhile inside a main loop as it will the decrease performance of your program.

If you need more help, let me know. =D
#36
GLBasic - en / Quiet...
2006-Dec-11
I've just been busy with work. 10+ hours a day, 7 days a week, but now I'm on temporary layoff so I actually have some time to devote to my project and helping other forum members if they need it. =D
#37
Thank you for replying Gernot. I do have the OGG codec installed for Windows Media Player and I tried several other ogg codecs I found on the internet but recieved the same results so I went and tried the FLAC format which unfortunately gave the same message after installing that codec. I'd really like to avoid the fees (http://www.mp3licensing.com/royalty/games.html) of using the MP3 format. :P I checked out the FMOD example but they also charge to license. I am going to attempt to see if I can utilize the OGG dlls or take advantage of the inline c feature. When I get something working, I will share it with the GLBASIC community. =)
#38
Sounds good. I'll wait till he gets back. Thanks for the reply!
#39
GLBasic - en / Something
2006-Aug-22
Strange. I just ran multiple instances of GLBASIC ver 3.179 and had no problems at all. What version are you running?
#40
I'm getting the following message when attempting to play an Ogg file through GLBASIC:

The specified file cannot be played on the specified MCI device. The file may be corrupt, not in the correct format, or no fil - The rest of the message is cut off here.

Here is the code I'm using:

PLAYMUSIC "1.ogg"
WHILE TRUE
WEND

As I understand it from the help, it should be able to play it. I have the Ogg Vorbis codec installed as I can play this same file via media player. Any ideas?
#41
// --------------------------------- //
// Project: Up Time Counter
// Start: Sunday, July 16, 2006
// IDE Version: 3.179
// Here's another useful bit of code I came up with if you need a time counter.
// It counts seconds, minutes and hours.

//*******************************************************************
//Grab starting timer position
//*******************************************************************
//This gets the current timer position to start counting from.
//It has to be put where you want timing to start and should only be run once IE
//before the main loop or as the first part of the code in your program.
starttimesec = GETTIMERALL()
starttimemin = GETTIMERALL()
starttimehour = GETTIMERALL()


//*******************************************************************
//MAIN LOOP
//*******************************************************************
WHILE TRUE
//Get temporary timer position minus the starting timer position.
//This gives us only the amount that has changed since the starting timer position
//was grabbed.
tempsec = GETTIMERALL() - starttimesec
tempmin = GETTIMERALL() - starttimemin
temphour = GETTIMERALL() - starttimehour


//GET ACTUAL COUNTER TIME
//
//Since GETTIMERALL() returns 1000ths of a second we divide by 1000 to get 1 second
//Not part of the actual code but to get minutes we need 60 total 1000ths of a second to = 1 min
//so we get 60000 by multiplying 60 x 1000.
//Similar with hours but since we now need 60 total minutes, that is 60 times the 60 x 1000ths
//(1min) which gives us 3600000 to divide by. If I lost you, don't worry, my description isn't that great.
//Also, GETTIMERALL() gives us a real number so we must use INTEGER() to give us a whole
//number by cutting off everything past the decimal point.
seconds = INTEGER(tempsec / 1000)
minutes = INTEGER(tempmin / 60000)
hours = INTEGER(temphour / 3600000)


//RESET STARTING TIMER POSITIONS
//
//This sets the starting time positions up to grab the current timer position for another count once
//minutes or seconds have reached 60.
//Since hours count up continually, we don't need to modify the starting position for them unless you
//wanted to add a counter for days, years, etc..
IF minutes > 59 THEN starttimemin = GETTIMERALL()
IF seconds > 59 THEN starttimesec = GETTIMERALL()


//SHOW OUR RESULTS
//
//This should be easy to figure out but we are just pasting the timer results to
//the screen and then telling it to update so it can be seen.
PRINT "Up Time: " + hours + "h" + minutes + "m" + seconds + "s",200,100
SHOWSCREEN
WEND
#42
Thanks for the reply. I'll stick with the current method.

I just got the reg email. Looks like I won't be getting much sleep tonight. =D
#43
I'm looking for a way to alter the RGB values of a sprite while preserving the transparency and be able to paste different RGB altered versions on screen at once. This would reduce the number of sprites used as I currently have multiple sprites of the same image, just a different color being loaded. Altering RGB will also give the abillity to have a much, much wider range of color possibilities. Is there an easy solution to this?

On another note, I just made my purchase for the Premium version and am eagerly looking forward to resuming my project. =)
#44
My thoughts exactly. I've used quite a few of the newer BASICs out there and this one takes the cake. None could match the speed of GL BASIC. The addition of inline c++ code makes it even better. Not to mention that Gernot is a great help and  puts forth an excellent effort to assist the community. I'm looking forward to my up coming purchase of GL BASIC next week when I get paid. =)
#45
I think that would be a great way to go.