Commit Graph

24 Commits

Author SHA1 Message Date
JappaWakka eca6a70ed6 Added MaxVisibleVertices to debug display
Show how many of the maximum amount of vertices are actually being drawn (which only happens when they're visible)
2024-05-05 13:17:06 +02:00
JappaWakka 1a7e08d361 Added "DisableMenus" map tag
When set to 1, prevents the player from opening the start menu or accessing the PokéGear.
2024-04-29 16:56:47 +02:00
JappaWakka 4c5bd0b7f6 Fix player not change to surf pokémon on load 2024-04-04 12:33:34 +02:00
Jasper Speelman fdc89e31e8
Merge pull request #204 from P3D-Legacy/0.61-implementations
0.61 implementations
2024-03-28 18:03:51 +01:00
JappaWakka 16a83441d9 Fixs some music bugs...
Fixed delay when unpausing the game while current level has no musicloop defined
Fixed silence (caused by undefined musicloop) overriding currently playing song when unpausing
2024-01-07 13:35:17 +01:00
JappaWakka 168255e1a0 If level RideType = 3, no stop once riding/biking 2023-12-27 17:09:25 +01:00
JappaWakka 241cb8af9c Fix NPCs updating too often 2023-10-03 09:43:58 +02:00
JappaWakka 0eddb70011 Bring back fading out music with switching maps 2023-08-29 19:20:54 +02:00
JappaWakka 0e8170a449 @Music.ForcePlay(song) & @Music.Unforce
@Music.ForcePlay(song)
Changes the currently playing music to a new one and prevents the music from being changed by warps or surfing/riding and such.

@Music.Unforce
Allows warps and surfing/riding etc. to change the music again.
2023-06-17 11:37:08 +02:00
JappaWakka 17ef30605c Fixed wrong bugcatchingconstest item pickup type..
By adding the IsOutside map Property
2023-04-01 09:15:57 +02:00
JappaWakka 2f0cccb052 Entering battle without pokémon triggers blackout 2023-02-26 17:16:39 +01:00
JappaWakka daef33a886 Prevent wild & trainer battles without pokémon
when the player has no Pokémon in their team, wild and trainer battle commands don't do anything
2023-02-26 15:26:07 +01:00
JappaWakka f2e093072e Added failsave to fix missing Level music crash 2023-01-13 14:13:44 +01:00
JappaWakka b9a7183166 Typo fixes and incorrect comments 2022-09-15 21:12:12 +02:00
JappaWakka 9e86665e58 Added SaveOnly map tag
A map tag that disables the PokeGear and all of the menu options except Save while on the map
2022-08-29 13:01:56 +02:00
darkfire006 56dff589e6 add regional form level tag 2022-07-05 23:44:43 -05:00
JappaWakka 3d25b132bb Fixed the daytimes
Instead of

Day = 0
Night = 1
Morning = 2
Evening = 3

it is now

Night = 0
Morning = 1
Day = 2
Evening = 3

this also affects the @environment.setdaytimeI(int) commands which have the same order but increased with 1
2022-06-11 10:46:51 +02:00
JappaWakka 542acc3c3d Fixed bug with warpblocks not moving the player 2022-06-06 14:19:05 +02:00
JappaWakka 2c7fbf8364 DayTime, Level & PlayerSkin improvements
* Changed the DayTime enum name to DayTimes for consistency with other enums like Seasons
* Changing the EnvironmentType or WeatherType will now not reset back to the default when Reloading a map with the R key (Warping or loading a different map normally does reset those properties)
* @level.setdaytime(int) is now @environment.setdaytime(int), which sets the DayTime permanently across maps. Setting the daytime to any other value than 1 2 3 or 4 will reset the daytime to the default one
* Added command @player.setskin(name) which will permanently change the player's skin, unlike @player.wearskin(name) which only changes the skin temporarily.
2022-02-17 13:46:15 +01:00
JappaWakkaP3D c74751b35b Map property typo corrections, new skydomes & improved lighting
Map Property "Lightning" renamed to "Lighting" (bulk replaced all occurences in the maps)

Map Property "EnviromentType" renamed to "EnvironmentType" (bulk replaced all occurences in the maps)

Replaced the skydomes, sun, moon and stars and updated the lighting to be less dark at times of day other than day itself.
2021-08-20 17:53:40 +02:00
JappaWakka fae7349356
Fix audio engine & contentpacks (#35)
* Replaced existing Gen 2 SFX with better sounding ones (no ugly reverb)
Replaced MediaPlayer with NAudio(and NAudio.Vorbis) for playing music in order to fix random stopping issues.
The game now directly loads .ogg files instead of the .wma/.xnb combination from before.
ContentPacks are now able to replace Music and SFX again (I haven't added a menu yet for choosing ContentPacks).
To make older GameModes work with current versions, you can add the GameMode property EnterType and set it to "1", this will make the game use the older 2D NewGameScreen.

* Delete GameController.vb

* Add gamecontroller.vb back

* Fix sfx missing

* Battleintro doodle now doesn't loop anymore (for no trainer)
Changed the shutter sound (aka Large Door sound) to something more large door-y
Made the enter sound slightly louder
The enter sound now plays when going through any warp to or from an indoor map (including falling through holes)
The flying sound effect is played earlier in the animation after selecting a location
Changed played sound effect when using the Escape Rope to "teleport" instead of "destroy"
The bump noise now also plays when bumping into something in first person
Fixed small gap between the end of the intro song and the start of the main song
Replaced some songs with better songs

* Fixed some more intro issues

* Forgot to change a thing

* Fixed an error where the main music would play, ignoring the muted musicmanager.

* fix indenting in musicmanager

* The music player will now only start playback on a new song if the music player is not muted, fixed the end time calculation of the intro of a song after muting, Music can't be unmuted now as long as a sound effect plays that stops the music.

* Fixed league restplace position, fixed sound effects sharing the volume slider of the music, sound effects are now also muted when pressing M, changed music on/off popup to audio on/off, removed bump delay in first person, added more control on whether played songs should be looping or not.

* Fixed some more scripts that turn on thirdperson mode but don't check if it was on before or set it back to what it was before afterwards, also fixed a small error in creditsscreen.vb.

* Fixed indenting error in musicmanager.vb, fixed an error of mine where the loopsong parameter would be seen as the playintro parameter.

* Added more music commands, added quite some menu select noises, will add more later

* More select sound effects!

* Fix music not resuming after soundeffect

* Trainer using item now plays the single_heal soundeffect

* Pokémon cries now sound louder

* Possibly fixing crash when playing Pokémon cry at volume higher than 0.71

* Added better quality Pokémon cries, made random overworld cries slightly less loud, added cries for 719 and 720.

* Sound effects now sound louder

* Revert "Added better quality Pokémon cries, made random overworld cries slightly less loud, added cries for 719 and 720."

This reverts commit 8c9296ed1a.

* Fixed the cause of why the title screen music plays even when the game is muted

* Tabs to spaces

* Revert

Co-authored-by: darkfire006 <blazer257@live.com>
Co-authored-by: JappaWakkaP3D <66885565+JappaWakkaP3D@users.noreply.github.com>
Co-authored-by: JappaWakkaP3D <jasper.speelman@outlook.com>
Co-authored-by: Vitaly Mikhailov <personal@aragas.org>
2020-07-09 20:59:42 +03:00
nilllzz 01ce289fd6 change debug mode detection for file watcher 2018-02-25 11:05:40 +01:00
nilllzz fcdcbad6c9 fix music, always summer/day in main menu 2018-02-24 01:20:42 +01:00
nilllzz a1786d5181 literally touch every file reorganizing the solution 2018-02-21 16:34:06 +01:00