3D Starchart - Teaser 1: Rendering Planets
-
So, i have tried it
Works great for vanilla freelancer, i have switch 10 times in different systems without crash.Iâve tried it on a modded freelancer -> application wonât load.
I think itâs because some files are not BINI encrypted, in the mod, universe.ini and some systems INIs are in .ini and not in BINI encrypted format. Not sure about that.It can be a great tool for previewing new systems or to see if a modul s corectly positionned with a base, or to make some âtactics videosâ
Keep it Up
-
Did you get an error message? if yes, what did it say?
Theoretically, text inis shouldnât be a problem. On startup, Starchart looks for the freelancer registry entry, then parses freelancer.ini to get the data path and the name of universe.ini and solararch.ini, then parses these and all inis and utfs refrenced there. Of course I could have made some mistakes (better: I know I did, adoxa already pointed out) so any further info could halp me fix that.
Nice to know it works with vanilla on other machines, though. Could you post some data about your pc and how you experienced the performance of Starchart? Thanks for testing!
-
I was wondering why it wouldnât work at all on my mechine, you just answered my my question though, I never installed FL on this desktop. I just dragged and dropped the install folder from another drive, so there is no registry entry.
-
So, when i rename my modded FL in âFreelancerâ to make your soft parsing my files, no errors, the soft doenât load, it say âStarchart a cesĂŠ de fontionnerâ (in english i think itsâs equal to âstarchart have stopped runningâ) this is the Details :
Description :
Stopped workingSignature du problème :
Nom dâĂŠvĂŠnement de problème: CLR20r3
Signature du problème 01: starchart.exe
Signature du problème 02: 0.0.0.1
Signature du problème 03: 4d835042
Signature du problème 04: FlApi
Signature du problème 05: 0.0.0.1
Signature du problème 06: 4d835028
Signature du problème 07: 17
Signature du problème 08: 565
Signature du problème 09: System.InvalidCastException
Version du système: 6.0.6002.2.2.0.768.3
Identificateur de paramètres rĂŠgionaux: 1036Iâm on Vista 32bit.
proc: t7500
Ram: 3Go
GC: 8600M GT
Animation when orientating systems and moving around are smooth zoom in and out too. Switching system take about 3 secondes. i will make more test to see how many times i can switch systems.Hope details can help you to found problem, but i thing to a cast error like saying in the details, are you casting some values, or just manipulate them ? Good luck.
I cant take a look at your source code for now, cause i havnât my compiler installed in this computer. -
yep, I just installed JFLP after adoxa pointed out that âI donât like itâ
Starchart, or rather my FLApi library are very strongly typed. The invalid cast is because in JFLP many values that are floats in vanilla are integers, and the parser handles this correctly but the api assumes other types.Will try to fix that soon
-
OK good news so
Oh, just a suggestion :
is there an easy way for you to let the user point at the FL folder instead of reading the registry ? So that, we can choose if we want load vanilla FL or a modded one :), By asking the user to point at the universe.ini or the freelancer.ini r the FL Folder.It can be a cool option for your future release.
-
No not an editor really, more a system viewer, well, a star chart
But Starchart really is just a frontend for FLApi, a library im working on to access Freelancer data. The api could be eqipped with editing functions (I plan to, some time in the distant future), so then it can be used to build editors. Starchart itself could evolve into a new engine for Freelancer, but that is far far off. Iâm just scratching at the surface.
-
Found another problem caused by JFLP. I use the longer âEn Dashâ (U+2013) for the gate âarrowsâ. This character isnât present in the sprite font, so another exception is thrown. Solution is simple, add s = s.Replace(â\x2013â, â-â); before MeasureString in drawString in SystemMap.cs. Well, simple for that particular problem, but there could be other missing characters, so a more robust solution is needed.
-
So i have maked some other tests :
Performaance seems to be good, i can change 25+ times of systemes, but some systems are unable, if you click on the map, nothing append, and on some systems, soft crach with the âsystem.exceptionâ throwed.
And always this âcast exceptionâ on a modded freelancer.But the god side is that the perfprmance is rather good and system swytch are fast, on my computer.
-
@Ezekiel:
OK, thank you for testing. Iâm glad performance is good, and it should be considering almost all data is loaded at startup (resuting in the immense memory usage). That some systems donât react when clicking on them is because the click detection is done really âquick-and-dirtyâ.
And the CastException, yeah wellâŚ. ^^@Adoxa:
My âsolutionâ yesterday, well two days ago, was only a quick fix. I hoped it would solve some problems with JFLP, maybe it did but of course not all. Iâll need some time looking over the code, testing with various installations and trying out your suggestions. Especially the casting issues⌠^^So, I dont know how long itâll take, how much time I can make in the week(s) to come. This post was, after all, only meant to be a preview. But suggestions are always appeciated of course, so thanks to everyone.
-
Iâve taken the liberty of attaching an updated version. It should fix all problems reading ini files, as well as reducing memory usage (I could previously only visit three systems before running out). It also lets you hold down control to move five times quicker. Note: this is just the binaries, you still need the Content directory. Source patch included (from revision 109).
-
build 0.0.0.4 online: https://sourceforge.net/projects/flapi/files/
Includes the changes by Adoxa (thanks man^^) except for the Tradelane Names workaroud (I want to do it right, might take time though)
Now includes a FolderBrowserDialog at startup so you can select a custom Freelancer install
Edit: Turns out I made more new errors than I fixed old ones in 0.0.0.3, so here is number 4.
Just realised the EN-Dash problem was is Jumpgate names, not Tradelannes, silly meâŚ
Anyway, fixed now. -
Hereâs another update. Greatly improves system selection, including showing the name as you move over it (although it has a horrible magenta flash each time, but that could just be me). Made the gate lines green (I had also intended to make systems with both gate & hole use yellow, but that wasnât as simple as it sounded) and gave gates precedence over holes. Less strict model loading, so Omicron Alpha (and perhaps others) will load. Even more memory fixes. Improved font support (e.g. LĂźbeck in Hamburg). As before, this is just the binaries plus patch (for r116).
-
Pre Alpha Release 0.0.0.5 is available, as always, on Sourceforge: click
Includes Adoxas 2nd patch (this time I actually applied it, so it should all work)
@Adoxa:
Thanks so much for your system selection improvement, somehow I didnât get the math right. I continued your work and added differently coloured stars.
Your memory improvements are working graet, too. Isât so simple, really, but somehow I always rely too much on the garbage collector^^I removed a restriction that prevented models without names from being drawn, resulting in much mor âstuffâ in the systems.
Added some experimental lighting.
Added a simple launcher that allows you to select the Freelancer install to use and change the window size or make it fullscreen.
AND: This time I visited all (vanilla) systems and they all worked (at least on my pc) so hopefully there arenât so many errors as in my previous releases.
-
Nice job so far on this, i am having allot of fun working with it.
I am wondering though, if you have any ideas on how to go about using the left mouse button to select scene objects and have them highlighted like in FL when you select something. I tried a few ideas but nothing has really worked yet.
For what i am doing i added a combobox that is populated with all the valid system objects of which i can select items, move the camera close to it, and show the objects properties in a property grid. but i would prefer to use the left mouse button in the scene to select them instead.
ââ
I have also started extending the FLApi to add in a Faction Class, and classes for the Market ie:
FLApi.Market.Commodities, FLApi.Market.Ships, FLApi.Market.Equipement
i just started on them so no real code yet.
the Class: FLApi.Factions.FLFaction is working fine, all it really does though is to parse the initialworld.ini to retrieve the Proper name of factions. Although this will be extended to include a list of their reputations with other factions, which will be easy enough to do , just have not coded it yet.
I am also working on extending the Costume class , which so far was a simple thing since you already had the code in place and parsing out those lines anyway. Again, plans are to extend this Class.
Because of the project i am using these in i had to convert the Starchart project into VB.NET, but somewhere along the lines of the conversion process something went wrong and now Planets are not being physically rendered in the scene, which also has a side effect of messing up the scene lighting. I have not really delved into this problem too much.
Anyway Cheers, and nice job so far.
-
I am wondering though, if you have any ideas on how to go about using the left mouse button to select scene objects and have them highlighted like in FL when you select something. I tried a few ideas but nothing has really worked yet.
You need to project the mouse position into 3D space. I was going to include it but didnât have the timne yet.
Because of the project i am using these in i had to convert the Starchart project into VB.NET, but somewhere along the lines of the conversion process something went wrong and now Planets are not being physically rendered in the scene, which also has a side effect of messing up the scene lighting.
In theory it should work as C# and VB.NET are essentially the same, but Iâve never tried this (why would anyone want to use VB when they can have C# )
Good luck with your project, I will continue to update Starchart as soon as I have time.