Opening txt files with the InfoURL parameter (but not .exe)

General discussion about Celestia that doesn't fit into other forums.
Avatar
Topic author
EarthMoon
Posts: 200
Joined: 02.07.2022
With us: 1 year 10 months
Location: Germany

Opening txt files with the InfoURL parameter (but not .exe)

Post #1by EarthMoon » 12.10.2023, 07:14

I have just found a hidden feature: You can specify the path to a .txt file (and maybe some other document types) in the InfoURL parameter (but not to .exe files and maybe also other scripts). This means you can provide descriptions about objects in .txt format and display it upon a click on InfoURL

phpBB [media]
Crew: "We are orbiting a black hole."
Control Center: "Do not fly too close to the black hole!"
Crew: "OH OOPS..."

Celestia versions:
1.6.3, 1.7.0 sRGB, 1.6.1 ED (plain)

Current projects:
Celestial (a Celestia-like program written in Python)

onetwothree
Site Admin
Posts: 704
Joined: 22.09.2018
With us: 5 years 7 months

Post #2by onetwothree » 12.10.2023, 08:49

This works for windows only.

Avatar
SevenSpheres
Moderator
Posts: 820
Joined: 08.10.2019
With us: 4 years 7 months

Post #3by SevenSpheres » 12.10.2023, 21:57

It doesn't work for me on Windows, though it obviously worked at one time since the old Ran addon (developed on macOS/1.5.0, I think) has InfoURLs pointing to local html files and celx scripts.
My Addons: viewtopic.php?f=23&t=19978 • Discord server admin
Celestia versions: 1.5.1, 1.6.1, 1.6.2, 1.7.0, and some unofficial versions like Celestia-ED

Avatar
Topic author
EarthMoon
Posts: 200
Joined: 02.07.2022
With us: 1 year 10 months
Location: Germany

Post #4by EarthMoon » 13.10.2023, 08:11

You need to put file:///X:/path/to/file.txt for it to work, not just X:/path/to/file.txt, it would handle it as a protocol called X: (like cel:// or https://, so you need to put file:/// to tell Celestia it should open a FILE)
Crew: "We are orbiting a black hole."
Control Center: "Do not fly too close to the black hole!"
Crew: "OH OOPS..."

Celestia versions:
1.6.3, 1.7.0 sRGB, 1.6.1 ED (plain)

Current projects:
Celestial (a Celestia-like program written in Python)

Avatar
SevenSpheres
Moderator
Posts: 820
Joined: 08.10.2019
With us: 4 years 7 months

Post #5by SevenSpheres » 13.10.2023, 15:28

I tried that. It doesn't work for me.
My Addons: viewtopic.php?f=23&t=19978 • Discord server admin
Celestia versions: 1.5.1, 1.6.1, 1.6.2, 1.7.0, and some unofficial versions like Celestia-ED

Avatar
Topic author
EarthMoon
Posts: 200
Joined: 02.07.2022
With us: 1 year 10 months
Location: Germany

Post #6by EarthMoon » 13.10.2023, 16:13

As it seems to work only for some people, this feature isn't really useful ...
Crew: "We are orbiting a black hole."
Control Center: "Do not fly too close to the black hole!"
Crew: "OH OOPS..."

Celestia versions:
1.6.3, 1.7.0 sRGB, 1.6.1 ED (plain)

Current projects:
Celestial (a Celestia-like program written in Python)

onetwothree
Site Admin
Posts: 704
Joined: 22.09.2018
With us: 5 years 7 months

Post #7by onetwothree » 14.10.2023, 07:27

Celestia uses built-in windows functions to open urls, so it all depends on your windows.

Avatar
TheLostProbe
Posts: 217
Joined: 07.05.2020
Age: 17
With us: 4 years
Location: City of Port Phillip, Melbourne, Australia

Post #8by TheLostProbe » 16.10.2023, 04:09

might be a Windows 11 thing that wasn't backported to 10
"Carbon stars with ancient satellites colonized by sentient fungi. Gas giants inhabited by vast meteorological intelligences. Worlds stretched thin across the membranes where the dimensions intersect... impossible to describe with our limited vocabulary."
- Dr. Wallace Breen


Return to “Celestia Users”