anyone have that code? :(
currently i write graphic/sound/video encryption system.
graphic can be loaded perfectly because i can supply the bitmap object.
but i have problem with sound and video.
we cannot pass the new decrypted object to the rgss3 player (because how it loaded written in hidden class. Audio and Graphics). if only i could peek on how the module grab the sound/video. then i can replace it with the decrypted object.
edit: i know it's hard to get that code. just in case anyone have it :D .
anyone have RGSS3 Audio/Graphic module source code? stuck at writing scripts.
● ARCHIVED · READ-ONLY
-
-
found this one for the Audio module...
https://github.com/CaptainJet/RM-Gosu/blob/master/rgss3/module/Audio.rb
i try implemententing it and it work. but there's something wrong with save and replay bgm. but it can be fixed by adding bgm_stop before replaying the bgm.
in the same website there also Graphic module. but it's missing play_movie method.
https://github.com/CaptainJet/RM-Gosu/blob/master/rgss3/module/Audio.rb
anyone know how RM play movie? -
How are you using that to pass in a decrypted byte stream? It doesn't look like it has a different interface from the default Audio module as they all take only paths.
-
@hime: sorry my bad. i forgot i put rescue so when no rvdata2 files for that sound. then it will call default command. so basically it don't work after i remove the actual files... :D . I'm googling how to play audio files with ruby but no clear answer without using gem. so i guess i stuck there.
so far i only succeed with graphic since normal_bitmap method return a bitmap object. i use garycxjk marshal dumpable bitmap method btw. but the rvdata2 files became bigger than the actual image files (just realize that jpeg have great compression) because basically it's the raw data of the image.
ex: 100kb+ > 150kb+, 200kb+ > 600kb+ , 6mb++ > 50mb++ WTF.
for sound and video... for now i implement your concept (found your simple encryption script... after i see it. it's a bit similar concept). decrypting the file and dump it to new object. then tell the editor the new file path is. i made it so developer can choose which folder to put the decrypted files. then it will generate that files with random name and can be without extension...
but then i encounter some issues. if the player's 'windows user' have no permission to 'write' that folder. then the script will turn error.
i throw some rescue to write in folder that the player created. so there's write permission. but then i cannot use windows system path.
such as C:/Program Files/
that make it super easy to found. (the original concept is putting it any system folder to make it hard to steal).
i try the script in my laptop with windows 7 64 bit (xp one works fine). and i cannot use the C:/Program Files/Estriole Games because i have no 'write' access to C:/Program Files/ it's owned by Trusted Installer.
the windows user i use is actually an administrator. but in windows explorer. i need to click the shield button (admin right) to create/delete folder in that folder. so i'm curious. is there in ruby similar code to always activate that shield button. :D .
these problems make me postpone the release of the scripts. (might not even release it probably)...
EDIT: OMG OMG OMG... after i post this post. i realize that i can play the Game.exe with administrator right....
right click > run with admin right
so it can create the folder. so i just need to tell the player to run the game with administrator right!!!
@hime: i don't know why. everytime i stuck at my script. talking to you suddenly open up my mind and make me find the solution. you're trully a goddess :D .
so i guess i will go back to the old implementation of decrypting file > dump it to object. tell the editor where the path is concept i write earlier (thank god i made backup).
the image also use that method (not gary's method) originally. because the encypted file smaller than created using gary's...