The following warnings occurred:
Warning [2] Undefined array key "lockoutexpiry" - Line: 94 - File: global.php PHP 8.4.12 (Linux)
File Line Function
/global.php 94 errorHandler->error
/showthread.php 28 require_once
Warning [2] Undefined array key "lockoutexpiry" - Line: 573 - File: global.php PHP 8.4.12 (Linux)
File Line Function
/global.php 573 errorHandler->error
/showthread.php 28 require_once
Warning [2] Undefined variable $can_access_moderationqueue - Line: 752 - File: global.php PHP 8.4.12 (Linux)
File Line Function
/global.php 752 errorHandler->error
/showthread.php 28 require_once
Warning [2] Undefined array key "avatartype" - Line: 892 - File: global.php PHP 8.4.12 (Linux)
File Line Function
/global.php 892 errorHandler->error
/showthread.php 28 require_once
Warning [2] Undefined array key "avatartype" - Line: 892 - File: global.php PHP 8.4.12 (Linux)
File Line Function
/global.php 892 errorHandler->error
/showthread.php 28 require_once
Warning [2] Undefined variable $awaitingusers - Line: 34 - File: global.php(959) : eval()'d code PHP 8.4.12 (Linux)
File Line Function
/global.php(959) : eval()'d code 34 errorHandler->error
/global.php 959 eval
/showthread.php 28 require_once
Warning [2] Undefined array key "style" - Line: 1024 - File: global.php PHP 8.4.12 (Linux)
File Line Function
/global.php 1024 errorHandler->error
/showthread.php 28 require_once
Warning [2] Undefined property: MyLanguage::$lang_select_default - Line: 5327 - File: inc/functions.php PHP 8.4.12 (Linux)
File Line Function
/inc/functions.php 5327 errorHandler->error
/global.php 1024 build_theme_select
/showthread.php 28 require_once
Warning [2] Trying to access array offset on null - Line: 480 - File: showthread.php PHP 8.4.12 (Linux)
File Line Function
/showthread.php 480 errorHandler->error
Warning [2] Undefined array key "dateline" - Line: 481 - File: showthread.php PHP 8.4.12 (Linux)
File Line Function
/showthread.php 481 errorHandler->error
Warning [2] Undefined array key "closed" - Line: 485 - File: showthread.php PHP 8.4.12 (Linux)
File Line Function
/showthread.php 485 errorHandler->error
Warning [2] Undefined array key "pid" - Line: 505 - File: showthread.php PHP 8.4.12 (Linux)
File Line Function
/showthread.php 505 errorHandler->error
Warning [2] Undefined array key "options" - Line: 512 - File: showthread.php PHP 8.4.12 (Linux)
File Line Function
/showthread.php 512 errorHandler->error
Warning [2] Undefined array key "votes" - Line: 513 - File: showthread.php PHP 8.4.12 (Linux)
File Line Function
/showthread.php 513 errorHandler->error
Warning [2] Undefined array key "question" - Line: 514 - File: showthread.php PHP 8.4.12 (Linux)
File Line Function
/showthread.php 514 errorHandler->error
Warning [2] Undefined array key "numoptions" - Line: 519 - File: showthread.php PHP 8.4.12 (Linux)
File Line Function
/showthread.php 519 errorHandler->error
Warning [2] Undefined array key "numoptions" - Line: 525 - File: showthread.php PHP 8.4.12 (Linux)
File Line Function
/showthread.php 525 errorHandler->error
Warning [2] Undefined variable $alreadyvoted - Line: 611 - File: showthread.php PHP 8.4.12 (Linux)
File Line Function
/showthread.php 611 errorHandler->error
Warning [2] Undefined variable $undovote - Line: 9 - File: showthread.php(631) : eval()'d code PHP 8.4.12 (Linux)
File Line Function
/showthread.php(631) : eval()'d code 9 errorHandler->error
/showthread.php 631 eval
Warning [2] Undefined array key "pid" - Line: 21 - File: showthread.php(631) : eval()'d code PHP 8.4.12 (Linux)
File Line Function
/showthread.php(631) : eval()'d code 21 errorHandler->error
/showthread.php 631 eval
Warning [2] Undefined array key 1 - Line: 1474 - File: inc/functions.php PHP 8.4.12 (Linux)
File Line Function
/inc/functions.php 1474 errorHandler->error
/inc/functions.php 1439 fetch_forum_permissions
/inc/functions.php 3077 forum_permissions
/showthread.php 661 build_forum_jump
Warning [2] Undefined array key "profilefield" - Line: 6 - File: inc/functions_post.php(484) : eval()'d code PHP 8.4.12 (Linux)
File Line Function
/inc/functions_post.php(484) : eval()'d code 6 errorHandler->error
/inc/functions_post.php 484 eval
/showthread.php 1126 build_postbit
Warning [2] Undefined array key "canonlyreplyownthreads" - Line: 672 - File: inc/functions_post.php PHP 8.4.12 (Linux)
File Line Function
/inc/functions_post.php 672 errorHandler->error
/showthread.php 1126 build_postbit
Warning [2] Undefined array key "showimages" - Line: 768 - File: inc/functions_post.php PHP 8.4.12 (Linux)
File Line Function
/inc/functions_post.php 768 errorHandler->error
/showthread.php 1126 build_postbit
Warning [2] Undefined array key "showvideos" - Line: 773 - File: inc/functions_post.php PHP 8.4.12 (Linux)
File Line Function
/inc/functions_post.php 773 errorHandler->error
/showthread.php 1126 build_postbit
Warning [2] Undefined array key "showimages" - Line: 811 - File: inc/functions_post.php PHP 8.4.12 (Linux)
File Line Function
/inc/functions_post.php 811 errorHandler->error
/showthread.php 1126 build_postbit
Warning [2] Undefined array key "invisible" - Line: 1568 - File: showthread.php PHP 8.4.12 (Linux)
File Line Function
/showthread.php 1568 errorHandler->error
Warning [2] Undefined variable $threadnotesbox - Line: 33 - File: showthread.php(1600) : eval()'d code PHP 8.4.12 (Linux)
File Line Function
/showthread.php(1600) : eval()'d code 33 errorHandler->error
/showthread.php 1600 eval
Warning [2] Undefined variable $ratethread - Line: 41 - File: showthread.php(1600) : eval()'d code PHP 8.4.12 (Linux)
File Line Function
/showthread.php(1600) : eval()'d code 41 errorHandler->error
/showthread.php 1600 eval
Warning [2] Undefined variable $addremovesubscription - Line: 82 - File: showthread.php(1600) : eval()'d code PHP 8.4.12 (Linux)
File Line Function
/showthread.php(1600) : eval()'d code 82 errorHandler->error
/showthread.php 1600 eval
Warning [2] Undefined variable $thread_deleted - Line: 104 - File: showthread.php(1600) : eval()'d code PHP 8.4.12 (Linux)
File Line Function
/showthread.php(1600) : eval()'d code 104 errorHandler->error
/showthread.php 1600 eval




Poll:
You do not have permission to vote in this poll.
Total 0 vote(s) 0%
* You voted for this item. [Show Results]

Suggestions: Better Content Loading and Sound Playing
#1
This thread lists some of my suggestions for better ways to load and use external content such as textures and sounds into 2DWorlds games.
  • AssetProvider service.
    • Void PreloadContent(string url, optional-boolean pause) method. This would allow the game to load and cache content before it is accessed normally in-game. If the optional boolean input is set to true, or is absent, it should cause a pause in the script that called it until the file is completely downloaded.
    • Integer ProgressOn(string url, optional-boolean percent) method. Calling this function will list the progress of the url being downloaded, returning 0 if it has not been called to be preloaded or loaded normally. If the optional boolean value is true or absent, it will return the progress as the percentage it has downloaded, but if it is set to false, it will return the amount downloaded in kilobytes.
    • Integer getSize(string url) method. Calling this function will get the size of the file in the url in kilobytes. Used with the function above, this can be used to make very smart loading progress screens.
  • Sound object upgrades.
    • Decimal Volume property. I'm actually kind of shocked this isn't in there already. And it's definitely necessary for the other ideas I have later in this list.
    • Decimal Pitch property. While not very necessary, this would allow for, amongst other things, Doppler-effect simulations.
    • Boolean Reversed property. This is just a whimsical little idea that I thought might be interesting. It's always crazy listening to songs in reverse Tongue In practical use, it could be used to reverse things like cymbal claps or other similar sound effects without requiring a new sound file edited with a 3rd-party program.
  • SoundProvider service.
    • Boolean DistanceEffect property. If enabled, this would allow sounds played inside objects in the world to have their client-side volumes adjusted by how far away they are from the character. For example, if a sound was played inside the Character's body, the volume could be 1.25 * the normal sound volume. If it was played at the horizontal edge of the screen, it could be 0.25 * the normal sound volume.
    • Integer SilenceDistance property. This value would set the minimum distance away from a player a sound could be played and not heard.
    • Integer MaxVolumeDistance property. This value would set the maximum distance away from a player a sound would be heard at or above its normal volume.
    • Decimal MaxVolumeMultiplier property. This value would be how many times louder than the normal sound volume a sound played directly at the player would be.
    • Boolean DopplerEffect property. If the Pitch feature of sounds was implemented, this would add an automatic Doppler effect to sounds in moving objects. If you have no idea what I'm talking about, it's how sounds moving towards you are higher-pitched than sounds moving away from you.
    • Decimal DopplerMultiplier property. Example internal formula = (this * velocity) + sound pitch.
    • Integer MaxDopplerVelocity property. This would set a limit on how fast an object can go before the Doppler effect will no longer change its pitch.
    • Boolean playMidiNote(integer instrument, integer pitch, decimal volume, decimal length) method. This would play a MIDI note with the specified parameters. Note that "pitch" would not be the same as a Sound object's Pitch, but instead going along the scale that MIDIs can play. If the sound could not be played, it returns false, else it returns true.
    • Boolean playMidiNoteSpecific(string instrument, string pitch, decimal volume, decimal length) method. Same as above, except it will try to use strings instead of direct numbers. For example, "French Horn" at "C#5".
    • I don't feel like writing them out but there should either be forms of the above two methods that play the note at a specific Vec2D position in the world, or a MidiNote object that can do the same things with properties and such.

And that's all! Smile
[Image: iwn8gk.gif]
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)