What is the current version/versions of Ogre3D used with the current version of PureBasic?
Thanks.
Current version of Ogre3D
Re: Current version of Ogre3D
Just a shot into the blue: The last entry of the help touching this is from 2012 and lists OGRE 1.82. Also the OGREs copyright text in the help is from 2012. If nobody forgot to update these, it should be 1.82.
Good morning, that's a nice tnetennba!
PureBasic 6.21/Windows 11 x64/Ryzen 7900X/32GB RAM/3TB SSD
Synology DS1821+/DX517, 130.9TB+50.8TB+2TB SSD
PureBasic 6.21/Windows 11 x64/Ryzen 7900X/32GB RAM/3TB SSD
Synology DS1821+/DX517, 130.9TB+50.8TB+2TB SSD
Re: Current version of Ogre3D
Yeah...it happened a few times that the docs didn't follow every change. That's why it would be great if either Fred or Prof Shadoko could confirm that it's still 1.8.2 ?
Thanks.
Thanks.
Re: Current version of Ogre3D
You can enable the log in InitEngine3D() but yes I think it's 1.8.2
Re: Current version of Ogre3D
Ogre.log in Windows 10 x64 with PB 6.10 wrote:*-*-* Version 1.8.2 (Byatis)
-
- Enthusiast
- Posts: 581
- Joined: Wed Sep 25, 2019 10:18 am
Re: Current version of Ogre3D
Please ask your questions, because switch on the cognition apparatus decides on the only known life in the universe.Wersten :DDüsseldorf NRW Germany Europe Earth Solar System Flake Bubble Orionarm
Milky Way Local_Group Virgo Supercluster Laniakea Universe
Milky Way Local_Group Virgo Supercluster Laniakea Universe
Re: Current version of Ogre3D
To get your current Ogre version you may run the following cross-platform program. Unfortunately Windows is blocking the Ogre log file while executing the program, so I had to copy the log file to a temporary file to be able to read it out. This is not necessary in Linux and MacOS but it also doesn't hurt... 

Code: Select all
EnableExplicit
Define FileExtension.S
Define OgreTempFile.S
Define OgreVersion.S
Define Record.S
If InitEngine3D(#PB_Engine3D_DebugLog) = 0
CompilerSelect #PB_Compiler_OS
CompilerCase #PB_OS_Linux
FileExtension = ".so"
CompilerCase #PB_OS_MacOS
FileExtension = ".dylib"
CompilerCase #PB_OS_Windows
FileExtension = ".dll"
CompilerEndSelect
MessageRequester("Error",
"Unable to find file Engine3D" + FileExtension,
#PB_MessageRequester_Error)
Else
CompilerIf #PB_Compiler_OS = #PB_OS_Windows
If FileSize("Ogre.Log") < 0
MessageRequester("Error",
"Unable to find Ogre.Log",
#PB_MessageRequester_Error)
End
EndIf
While FileSize("Ogre.Log") < 500
Delay(20)
Wend
CompilerEndIf
OgreTempFile = GetTemporaryDirectory() + "Ogre.Log"
If CopyFile("Ogre.Log", OgreTempFile) = 0
MessageRequester("Error",
"Unable to copy Ogre.Log",
#PB_MessageRequester_Error)
End
EndIf
If FileSize(OgreTempFile) < 0
MessageRequester("Error",
"Unable to find " +
OgreTempFile + "!",
#PB_MessageRequester_Error)
Else
If ReadFile(0, OgreTempFile) = 0
MessageRequester("Error",
"Unable to open " + OgreTempFile + "!")
End
Else
While Eof(0) = #False
Record = ReadString(0)
If FindString(Record, "*-*-* Version")
OgreVersion = StringField(Record, 4, " ")
Break
EndIf
Wend
CloseFile(0)
If OgreVersion = ""
MessageRequester("Error",
"Unable to find Ogre version in Ogre.Log",
#PB_MessageRequester_Error)
Else
MessageRequester("Info",
"Ogre version: " + OgreVersion)
EndIf
EndIf
EndIf
DeleteFile(OgreTempFile)
EndIf