Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changelog window won't open #6766

Closed
mrtnptrs opened this issue Dec 2, 2017 · 9 comments · Fixed by #10954
Closed

Changelog window won't open #6766

mrtnptrs opened this issue Dec 2, 2017 · 9 comments · Fixed by #10954
Labels
bug Something went wrong.

Comments

@mrtnptrs
Copy link
Contributor

mrtnptrs commented Dec 2, 2017

OS: Windows 10 and Android 7.0 (Samsung Galaxy S8+)
Version: 0.1.2
Commit/Build: 33d0fa9

If you go to the about OpenRCT2 window and try to open the Changelog-window, it doesn't open that window.

@AaronVanGeffen
Copy link
Member

Is it even shipped in the Android build?

@mrtnptrs
Copy link
Contributor Author

mrtnptrs commented Dec 2, 2017

I don't know, but it also won't open when using Windows 10, as I said earlier above (I tested that of course as I suspected first it was an Android-only bug, but it isn't.)

@AaronVanGeffen
Copy link
Member

Hmm. It used to open for me if it were in a doc subdirectory in the same directory as the binary. That is no longer the case. I'm guessing this regression relates to the recent changes to the platform code, then.

@Gymnasiast Gymnasiast added the bug Something went wrong. label Dec 4, 2017
@AaronVanGeffen AaronVanGeffen added the Android (OS) Related to the Android version of OpenRCT2. label May 25, 2018
@Gymnasiast Gymnasiast removed the Android (OS) Related to the Android version of OpenRCT2. label Jul 25, 2019
@AaronVanGeffen
Copy link
Member

As far as I can tell, Windows and macOS builds ship with the changelog file in the place I would expect them to.

Is this still an issue on Windows for you, @mrtnptrs?

@mrtnptrs
Copy link
Contributor Author

mrtnptrs commented Jul 26, 2019

Yes, the automated Windows build ships with the changelog file (macOS not tested). The problem is that is is in the main directory (with the executable); OpenRCT2 seems to only be able to find it when it is in the data-folder. As soon as you place the changelog.txt file in the data folder, the changelog screen works again. So, two options to fix this: making OpenRCT2 recognize the changelog.txt file from the main directory or place the changelog.txt file in the data-directory.

The line causing this:

return DIRBASE::DOCUMENTATION;

Edit: give me a few minutes, I think I can fix this.

@AaronVanGeffen
Copy link
Member

It certainly used to be able to find the file in the same directory as the running executable. Sounds like a regression.

@mrtnptrs
Copy link
Contributor Author

mrtnptrs commented Jul 26, 2019

It certainly used to be able to find the file in the same directory as the running executable. Sounds like a regression.

Yeah, I think I can fix it. Compiling the fix at my end now to start testing.

Edit: testing the fix now, but I see the changelog.txt file isn't in the bin-folder when you compile OpenRCT2 yourself with Visual Studio (2019.)

@mrtnptrs
Copy link
Contributor Author

mrtnptrs commented Jul 26, 2019

I thought editing this line:

return DIRBASE::DOCUMENTATION;

to return DIRBASE::OPENRCT2; (so, pointing it from the data-folder to the main OPENRCT2-folder) would fix it, but strangely it doesn't. It still only recognizes the changelog.txt file only when it is in the data-folder.... Why?

Edit: If I look at this line, I would expect my fix to work, but it doesn't weirdly:

return env->GetFilePath(PATHID::CHANGELOG);

@ZehMatt
Copy link
Member

ZehMatt commented Jul 26, 2019

Maybe you could log the file path returned to see if its actually correct? Or simply build the whole thing with the Debug configuration and step over the code to see how it builds the path.

AaronVanGeffen added a commit to AaronVanGeffen/OpenRCT2 that referenced this issue Mar 17, 2020
AaronVanGeffen added a commit to AaronVanGeffen/OpenRCT2 that referenced this issue Mar 17, 2020
daandeheij pushed a commit to daandeheij/OpenRCT2 that referenced this issue Mar 24, 2020
janisozaur added a commit that referenced this issue Mar 24, 2020
- Feature: [#3154] Use a random title sequence each time it is shown.
- Feature: [#6553] Android version now runs in full screen.
- Feature: [#7865] Transport rides can now be synchronised.
- Feature: [#9073] Shortcut keys for the Tile Inspector.
- Feature: [#10305] Add two shortcuts for increasing and decreasing the scaling factor.
- Feature: [#10189] Make Track Designs work in multiplayer.
- Feature: [#10357] Added window for scenery scatter tool, allowing for area and density selection.
- Feature: [#10637] Console command to remove all floating objects.
- Change: [#1164] Use available translations for shortcut key bindings.
- Change: [#10997] Speed is automatically reset to normal upon scenario completion.
- Fix: [#2485] Hide Vertical Faces not applied to the edges of water.
- Fix: [#5249] No collision detection when building ride entrance at heights > 85.5m.
- Fix: [#6766] Changelog window doesn't open on some platforms.
- Fix: [#7784] Vehicle tab takes 1st car colour instead of tab_vehicle's colour.
- Fix: [#7854] Cannot build a custom spiral roller coaster design.
- Fix: [#7854] Empty entries in spiral roller coaster designs list.
- Fix: [#8151] Game freezes upon demolishing mazes at odd heights.
- Fix: [#8875] RCT1 competition scenarios are classified incorrectly.
- Fix: [#10176] Mistake in the sprite for the land tool's 6x6 grid.
- Fix: [#10196] Doors unable to be placed at end of track corners.
- Fix: [#10228] Can't import RCT1 Deluxe from Steam.
- Fix: [#10313] Path furniture can be placed on level crossings.
- Fix: [#10325] Crash when banners have no text.
- Fix: [#10376] No ratings generated when a shop and track intersect.
- Fix: [#10420] Money effect causing false positive desync.
- Fix: [#10477] Large Scenery cannot be placed higher using SHIFT.
- Fix: [#10489] Hosts last player action not being synchronized.
- Fix: [#10543] Secondary shop item prices are not imported correctly from RCT1 saves.
- Fix: [#10547] RCT1 parks have too many rides available.
- Fix: [#10587] Update last action coordinates on correct player.
- Fix: [#10631] Game bugs out and crashes if you get too many stations via copying stations with the tile inspector.
- Fix: [#10662] Duck cheat tooltips look odd and do not explain anything.
- Fix: [#10694] The lift hill speed of the flying roller coaster cannot be changed (original bug).
- Fix: [#10705] Apply multithreaded rendering to all viewports.
- Fix: [#10739] Mountain tool overlay for even-numbered selections.
- Fix: [#10752] Mute button state not correctly set at startup.
- Fix: [#10822] Can place too many peep spawns.
- Fix: [#10898] Banner text has an offset in tile inspector window.
- Fix: [#10904] RCT1/LL-scenarios with red water won't open.
- Fix: [#10941] The Clear Scenery tool gives refunds for ghost elements.
- Fix: [#10963] Light effects are drawn off-centre in some rotations.
- Fix: [#10993] Bottom toolbar not refreshing when a guest leaves the park.
- Fix: [#11001] Rides list does not use natural sorting.
- Fix: [objects#54] Stage Coach cars are not considered covered by the game.
- Fix: [objects#56] Handymen cut grass incorrectly.
- Improved: [#682] The staff patrol area is now drawn on the water, instead of on the surface under water.
- Improved: [#10858] Added horizontal grid lines to finance charts.
- Improved: [#10884] Added y-axes and labels to park window charts.
- Improved: [#10970] Introduced optional light effects for vehicles at night.
- Removed: [#6898] LOADMM and LOADRCT1 title sequence commands (use LOADSC instead).
XplosiveLugnut pushed a commit to XplosiveLugnut/OpenRCT2 that referenced this issue Apr 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something went wrong.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants