Re: Writing a bgt script to get misc stats about another script?
The first part is not that hard. the second part about intigrating this with generate_profile would be extremely difficult to say the least. You don't get that much control over the BGT profiler, so you can't tell it to append
Re: The mouse and BGT
Yeah, so if BGT uses low level hooks, it seems they are somewhat broken. Here, have a look at this link. https://stackoverflow.com/questions/265 … board-hook
URL: https://forum.audiogames.net/post/449511/#p449511
--
Audiogames-reflector mailing list
Audiogames-re
Re: The mouse and BGT
So I just made a program that installs an ll hook to block mouse events, but it breaks all the time, as if something is undoing my hook. I think I will update that program to have a timer where the hook is uninstalled and reinstalled after 30 seconds or so. I think win
Re: I made a game but it won't run
OK dude. There are many reasons I'd recommend people switch away from BGT, and if people ask I will certainly give them. But how is piping up and telling someone to switch programming languages in random topics helping anyone? Your opinion of languages is
Re: Cython, really secure?
Right, just a couple things. Protecting code was a huge reason I avoided python for years, what's the point when you can just quick run uncompyle6 on your code. It fell mostly on me, with some help, to figure out a way to protect NVG. These are my findings. So fir
Re: For beginners. Why is C# better than Python for audio game development
lol um, ok. We trust in 3rd party libs when we use python too much? I like, don't even know where to start. Better not use C++ on windows because you have to include windows.h unless you want to recode everything fro
Re: For beginners. Why is C# better than Python for audio game development
Lol so I probably won't post after this in this topic so as to not start an argument, but I will still defend myself. This is all you can come up with? When I tell you your wrong all you can think to do is mention so
Re: For beginners. Why is C# better than Python for audio game development
So as others have pointed out, this is... majorly flawed to say the least. I've seen several audio games that people really like that were coded in python. For example, great toy robbery, Oh Shit, etc. And others to
Re: ?Bgt, A way to fade_all pools?
Note this is untested I just wrote it quickly in a notepad window and posted so you'll have to fix any errors.// to use, make a global array of sound_pools.
sound_pool@[] all_pools;
//Now lets make a couple pools;
sound_pool pool1;
sound_pool pool2;
//In
Re: ?Bgt, A way to fade_all pools?
@2 it would work but it wouldn't fade them all at once. The proper way to do this is to create an array of sound_pool_items, then loop through all sound pools you want to fade and add it's items array to your global one. Then loop through that and fade it.
Re: novel creator question for python?
No but the server is compiling it. It's not about encryption here, the idea is to modify the code being sent to include some payload that is harmful when compiling, then it will be sent and though it's not directly executed, maybe some cleverly employe
Re: NVDA Question
Yeah I've only had that issue with broken key repeating once. Also yes installing a low level keyboard hook will work, and yes it gets removed, not sure how cleanly, if the process dies. I know because I made a program to lock my keyboard and mouse for my user. As soon as
Re: NVDA Question
Oh wow I didn't know it was possible to disable repeat keys programatically. One time I had to kill the AHC process for 1 reason or another I don't remember, and my key repeats didn't work until I relaunched and closed the game again, I guess now I know why
URL: https://
Re: Pyinstaller not listening to me, help!
I believe there is some sort of optimization that is performed where the faster things are loaded before the slower things. It follows the same python import order. First it checks for C extensions, because those would be the quickest. Then, it che
Re: Pyinstaller not listening to me, help!
Hooks can be used for hidden imports, but they are able to be used for much much more, and the correct line sintax is in my post unless the forum broke it. Other than that though no you did not I believe
URL: https://forum.audiogames.net/post/4372
Re: novel creator question for python?
Hmmm yeah I hadn't considered the server idea. It sounds viable, but I'm not sure of the security implications of something like that. It could be dangerous to send code to a server and have it compile, I can't see a way to make something like that per
Re: NVDA Question
Yeah, #5 is correct, this is your best bet if this is what your aiming for. If you have access to the windows API, I would look into the function SetWindowsHookEx. Just make sure to let the control keys through no matter what, and make absolutely sure you remove the hook a
Re: Another question about pythonic syntax, yea!
So paul, I just gotta give ya a friendly little poke here. Your examples are a bit broken, I figured you'd find it pretty amusing if I pointed it out So your first one, for item in x: if item>3: x.remove(item) will remove every other item th
Re: Pyinstaller not listening to me, help!
OK, hold on, lets clear up a bit of confusion here. Now that I have more than 5 minutes to write a post at the end of a class, here we go. So paul is somewhat wrong, if you use cython, you will likely want to use a pyinstaller hook to manage your h
Re: Pyinstaller not listening to me, help!
I'm slightly confused. Pyinstaller's job is to create an exe. Also, try adding the arguments such as --onefile to the start of the command before the filename, like pyinstaller --onefile script.py. Also, delete the spec and use a py file instead. A
Re: Pyinstaller not listening to me, help!
I'm slightly confused. Pyinstaller's job is to create an exe. Also, try adding the arguments such as --onefile to the start of the command before the filename. Also, delete the spec and use a py file instead. A spec file contains all those commands
Re: novel creator question for python?
so @3 just letting you know if you have the game turn modules into python code and cythonize them, you are making it so only players with visual studio and a python environment as well as cython and all required modules could play the game
URL: https:
Re: novel creator question for python?
Perfect protection is impossible, but you could encrypt and pack them so users could distribute encrypted files. If you release opensource, it's extra extra impossible. People would just call any decrypt or unload function you create
URL: https://foru
Re: Selling stuff via paypal?
Unfortunately no, pp automatically deducts amounts from any payment a buyer makes. I don't know off the top of my head what the fees are, but it's reasonable to assume that if you sell something for 10 dollars, your likely to get like $8.99 or something while P
Re: launch modification in html
You can do this with _javascript_. Give your link an ID, then when you want to hide it, you should be able to call document.getElementById("link_id").hidden=true. If that doesn't work, put your link in a div.
URL: https://forum.audiogames.net/post/435314/#p
Re: A curiosity question
Technically it sets it, but I'd imagine that checking each time whether it's true vs resetting it to true even if it is already true would execute at roughly the same speed, so you can do either, at least for things like booleans and other simple variables. But once
Re: Selling stuff via paypal?
https://developer.paypal.com/ may be a good spot to start looking. Basically, it's just a form you make with HTML that sends the user via post request to paypal with the details given on the form. The user clicks the pay now button and is redirected to the URL
Re: How can I use bytes to make a sound in sound_lib?
Yes I believe so
URL: https://forum.audiogames.net/post/433487/#p433487
--
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflect
Re: How can I use bytes to make a sound in sound_lib?
Yeah you'll want to keep the buffer around while the sound_lib handle exists. Remember, you are streaming, not loading. So this means you are reading small chunks of that data during playback, so if you destroy the string buffer, sometim
Re: 0 vs. 1 with bgt arrays
So @1, are you confused by the 0 based indexing in arrays? I have never in all my time using BGT seen the length method of an array fail to do what it is supposed to do. I'm almost certain it can not be confused with 0 and 1 items. If array.length returns 0, ther
Re: python, I'm being dumb... again!
@Ethin os.walk is indeed recursive. @1, basically when you loop through output from os.walk, you are getting a list with 3 items in it. This is usually represented by something like for root, dirs, files in os.walk(directory). However you can also execut
Re: python, I'm being dumb... again!
@Ethin os.walk is indeed recursive. @1, basically when you loop through output from os.walk, you are getting a list with 3 items in it. This is usually represented by something like for root, dirs, files in os.walk(directory). However you can also execut
Re: Three instances of NVDA at the same time causing problems!
I don't think that's multiple at once, Basically if NVDA crashes, it doesn't take it's system tray icons with it, so you get a bunch of dead icons in the system tray. You can click on them and they will die. I have never seen 2
Re: How can I use bytes to make a sound in sound_lib?
Hi. What you need to do is use a ctypes string buffer. So import ctypes, then when loading:string_buffer=ctypes.create_string_buffer(the_bytes)string_buffer_address=ctypes.addressof(string_buffer)handle=sound_lib_stream.FileStream(file=s
Re: Would you ever wanna use both BGT and Python?
So I have never seen a union before this. However, when reading a struct, you would write it in the BGT DLL call as a char* and read the struct as a string of bytes. Thus, to read something from the same address twice, you just access the sa
Re: Would you ever wanna use both BGT and Python?
@17, the only point you have is C callback functions, that would be extremely difficult to set up, so functions that use callbacks could hardly be wrapped I believe. Maybe there is a way, I just haven't sat down and attempted to figure it ou
Re: Would you ever wanna use both BGT and Python?
lol you can't do much with just python37.dll. You could probably get it to work with a lot of hacking, but it's just so not worth it. The only reason you were able to import win32api is because you had it installed. It wouldn't work if you d
Re: A question about reasons... think before posting
Another smaller reason I thought of is that I don't think some people like indenting code. Again this shouldn't be a reason to stay, indenting can be quite useful especially when working with sighted collaborators, but if we are looking f
Re: Would you ever wanna use both BGT and Python?
Actually @8 I'm not sure that would be easier, I don't know if anyone has successfully recreated philip's enet settings in another language to communicate with the BGT's network object. Please feel free to correct me though. In any event, I
Re: A question about reasons... think before posting
Lol sorry I wrote that last post in like 30 seconds at the end of class. For executable size, I meant to say that you just have the small advantage of what can be quicker downloads and sometimes more clean folders. Everyone loves to downl
Re: A question about reasons... think before posting
for cs, to run on other platforms, you can use mono. Also yeah the executable size would just be an advantage.
URL: https://forum.audiogames.net/post/430797/#p430797
--
Audiogames-reflector mailing list
Audiogames-reflector@sabahatt
Re: A question about reasons... think before posting
I have to go so didn't time each entry and calculate averages, but running that script took 96326 milliseconds. Devided by 3, that's 32108.6668 ms, or about 32 seconds. As you can see, this is indeed faster in BGT by about 4 secon
Re: A question about reasons... think before posting
@darter, about speed, make a loop in BGT that executes 10 million times and assigns a couple vars and stuff, then attach a timer. You will see that this same loop will run considerably slower in python. For compilation, the theory is of c
Re: A question about reasons... think before posting
For me, there are a couple things that allowed BGT to have a pull on me for a while. I am certainly glad with python now, but I will still use BGT occasionally. For quite a few reasons.1. The chalenge: With BGT, you won't find help on sta
Re: How to create a non-standalone Python executable?
Yeah building extensions with cython is 1 thing, building a standalone executable with it is quite another entirely because there is no existing cython build tool to do that. You need to write your own compile script. It's probably prett
Re: play_wait without freezing speech in bgt
Here is an example.void handle_keys(){if(key_pressed(KEY_H)){speak(health);}if(key_pressed(KEY_C)){speak(x+", "+y);}}void main(){show_game_window("game");timer t;while(true){wait(5);handle_keys();if(t.elapsed>1){t.restart();play_wait("sound.o
Re: play_wait without freezing speech in bgt
Here is an example.
URL: https://forum.audiogames.net/post/430138/#p430138
--
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector
Re: play_wait without freezing speech in bgt
Oh, yeah that's not freezing speech, that's because while the sound is playinga s wait, the loop obviously can't execute while it is playing. You can use the code snippet i gave above. Make a function that handles keypresses. Call it in your main
Re: play_wait without freezing speech in bgt
What do you mean by freezing speech? Like you can't press control to stop it? Speech stops automatically, or what. Both of those functions will freeze your game loop so you can't walk to use keyboard commands, but they have no direct impact on sp
Re: How to create a non-standalone Python executable?
If you want to easily use cmd to execute scripts, you could just make a very small batch file that executes the code if you don't want to call python scriptname.py arg1 arg2 arg3 etc. For me I can just call py scripts like executables, b
Re: A function in BGT to sort an array of strings into alphabetic order?
BGT has a built in function for this. array_of_strings.sort_ascending();
URL: http://forum.audiogames.net/viewtopic.php?pid=290256#p290256
___
Audiogames-reflector mail
Re: The death of Kerry Rhys Day
No, it isn't I don't think.
URL: http://forum.audiogames.net/viewtopic.php?pid=281220#p281220
___
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.co
Re: sonnis gdc part 2, 15 GB of sounds for free!
Hi. The link works for me...
URL: http://forum.audiogames.net/viewtopic.php?pid=275018#p275018
___
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabah
sonnis gdc part 2, 15 GB of sounds for free!
Hi all. Sense I never saw this posted anywhere, I figured I'd bring it to everyone's attention. Our old friend Sonnis is back with a new version of the Sonnis GDC game audio bundle 2016! They claim 16 gigs, but it's more like 14.8. Still pretty c
Re: Time to get rid of speed hacking in BGT games!
Of course, there is no perfect fix for a thing like this. If your good enough with debugging, yeah you could probably mod the variable. BGT I believe grabs from a DLL so it could be difficult, but for sure duable. @ian, just search for "dow
Re: Time to get rid of speed hacking in BGT games!
Yes, aprone basicly said everything. This speed_stop function get's rid of editing the timers that are in memory, at least in BGT. I think the reason this works is because BGT doesn't keep it's unix_timestamp in memory, instead when ever yo
Re: Sharing My Music and Sound Effects - Over 900 Tracks
Course it's not a very big deel, would just be convenient. BTW guys, if I have no objections from eric matyas I will upload a zip file of all the music so you don't have to download track by track. I'm still downloading direct from hi
Re: Sharing My Music and Sound Effects - Over 900 Tracks
[[wow]] this is quite amazing! I am able to download all of the tracks by indexing the /wp-content/uploads directory. @eric, if i'm doing something rong by downloading files not directly from your actual webpage, I need to know. Also,
Time to get rid of speed hacking in BGT games!
Hi all! I am very excited to release speed_stop! It is very very simple to use, but very powerful! This is very good at stopping a lot lot of speed hacking in games. Based on your game you may have to tinker with it slightly, but it really does
Re: lets code
Also i'm not sure if I should do this bug I could add some of the old partisipants back. I just don't know if you'd all be intrested anymore after what happened last time. Either way it's always open and if enough people agree i'll just add most from the other topic back and t
Re: Let's code!
So we can now just abandon this topic and move onto the new one, i'm atempting this folder once more! Please do not respond in this topic as chances are it won't be red, instead use the new topic.
URL: http://forum.audiogames.net/viewtopic.php?pid=260007#p260007
__
lets code
Hi all. I'll just let the last topic fall into oblivian somewhare and we can use this one. Basicly I decided I am going to try this again. A folder whare we can all join and code and learn from each others code and share libraries and code, etc etc etc. I am going to be much more
Re: Let's code!
Hi. Figured i'd say, just like always someone ruined the folder. Perhaps I can try again soon and maintain a bit better, but theres always gonna be some stupid jackass who just wants to ruin everything. Next we'll need t topic called, email addresses we know we shouldn't acc
Re: A new shared dropbox coding folder
It is a great idea, but alas someone will end up ruining it. Theres many examples. All the let's plays folders, my folder didn't get spammed, someone started deleting everything in there. Sad, too. It was a nice folder. Unfortionatly these stupid peopl
Re: BGT Voice Chat
yes, it's been done recording with winmm. It's not very practicle though. search on google for winmm.dll MSI_SEND-STRING simple recording and you should probably find stuff. This function works with BGT. I've scene it not work though on ocasion, but it does most of the ti
Re: BGT Voice Chat
It's not in BGT. You have to use DLL's and the WinAPI and stuff. It's not a couple lines of code or anything. Then you need an ogg encoder such as oggenc2 or else transmitted data would be huge.
URL: http://forum.audiogames.net/viewtopic.php?pid=257588#p257588
_
Re: Oriol Gómez bgt contest: One day, one hit
ah darn to bad this ain't on the weekend hehehe got school or would have joined.
URL: http://forum.audiogames.net/viewtopic.php?pid=256188#p256188
___
Audiogames-reflector mailing list
Audiogames
Re: bgt set map properties when creating map ( x, y )
ethin you are correct, there is no map object in bgt by default. Really, I wouldn't recommend arrays for this, as it scemes to make things a bit more clunky to set up. I'd recommend dictionaries.
URL: http://forum.audiogames.net/viewtop
IP Locale, a mini ip geolocation class in bgt
So the first thing i'm going to say, is I did not, I repeat not! write this with any bad intent and/or to hack! I actually wrote this with a couple cool ideas and mostly for experimentation. Any bad use of this script shall not be my fault, as I
Re: Autoit GUI latency
i've always wondered the same thing with autoit
URL: http://forum.audiogames.net/viewtopic.php?pid=252900#p252900
___
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-g
70 matches
Mail list logo