Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / [Request] Pointers

Author
Message
Arch-Ok
AGK Developer
5
Years of Service
User Offline
Joined: 11th Jul 2019
Location: Bursa/TÜRKIYE
Posted: 20th Jan 2022 14:27
I don't know if these are possible but I'm just dreaming;

1 - CreateFileFromMemblock() command:
This command constantly consumes more memory and it is imposiible to create a program which runs for just a day. For example, a server.

2 - PlaySound() command:
This command creates delays on some platforms if not on all platforms. Please fix this.

3 - PauseSound() & ResumeSound() & GetSoundPosition() commands:
It would be just great.

4 - Debug and Release modes:
Maybe, SetErrorMode(0) is doing the job, I don't know but cancelling cheking the array sizes, object existences e.t.c. will add much more speed. Also, I suspect that my useless source codes are distributed with my app's.

5 - More control over memory and variables:
GetMemblockPointer(_M_ As MemblockHandle)
SizeOf(any)
MemCopy(A As void, B As void, C As Integer)

Assigning operators like @ and *, or & and *

Like;


or;


6 - ScreenPointer():
It would be so nice getting surface's direct addresses.

Just dreaming
Bored of the Rings
User Banned
Posted: 20th Jan 2022 15:05
yes did this in Tier2 (a dll plugin for Tier1) to use pointers for memblocks etc. It's not that hard if you know C+.
Professional Programmer, languages: SAS, C++, SQL, PL-SQL, DBPro, Purebasic, JavaScript, others
Arch-Ok
AGK Developer
5
Years of Service
User Offline
Joined: 11th Jul 2019
Location: Bursa/TÜRKIYE
Posted: 20th Jan 2022 16:30
Thanks mate, I know assembly and can easily imagine the commands in any language, just don't want to get involved and enjoy those commands I requested in basic.
Like I said, just a dream...
Virtual Nomad
Moderator
18
Years of Service
User Offline
Joined: 14th Dec 2005
Location: SF Bay Area, USA
Posted: 21st Jan 2022 01:43 Edited at: 21st Jan 2022 01:44
Arch-Ok
AGK Developer
5
Years of Service
User Offline
Joined: 11th Jul 2019
Location: Bursa/TÜRKIYE
Posted: 21st Jan 2022 15:24
@virtual nomad thanks, I'll try there soon.
Virtual Nomad
Moderator
18
Years of Service
User Offline
Joined: 14th Dec 2005
Location: SF Bay Area, USA
Posted: 22nd Jan 2022 01:33 Edited at: 22nd Jan 2022 01:46
btw, i believe #2 is already posted: https://github.com/TheGameCreators/AGK-Studio/issues/680

...unless you're talking about something else?

and, i've added #3: https://github.com/TheGameCreators/AGK-Studio/issues/934.

i can't think of any additional Sound commands beyond what you mentioned; if you can, let me know and i'll add.

IIRC, OggMusic was picked as the "go to" with some of the sound functions that you requested but we shouldn't have to use those commands for Sounds.
Arch-Ok
AGK Developer
5
Years of Service
User Offline
Joined: 11th Jul 2019
Location: Bursa/TÜRKIYE
Posted: 22nd Jan 2022 19:17
@Virtual Nomad Thank you, I do owe you about that.

Actually I've seen the playsound posts and I found a temporary solution for that;

Instead of using -> SetSyncRate( 30, 0 )
Using -> SetSyncRate( 0, 1 ) kinda works.

Honsetly I'm an x86 assembly coder but don't know (and do not want to know that github) and those pointers and commands I wished to be in AppGameKit should let exprienced programmers free and let us create interesting or unusual app's. But then we can not call this language as a BASIC interpreter? Idk, still dreaming

Login to post a reply

Server time is: 2024-11-23 09:34:06
Your offset time is: 2024-11-23 09:34:06