Freelancer Community Network
Reminder: Internet Explorer 6 or below are NOT supported.
HomeHome
ForumForum
WikiWiki
DownloadsDownloads
ForgeForge
Multiplayer Connection Tutorial
Collapse/Expand Random Image
Collapse/Expand Login
Username:

Password:

Remember me



Lost Password?

Register now!
Collapse/Expand Chat
Collapse/Expand Who's Online
123 user(s) are online (70 user(s) are browsing Forum)

Members: 0
Guests: 123

more...
Collapse/Expand Donations
Monthly costs: -30€
Income (ads): +5€
Donations (last month): +0€

Current balance: 55€
(last updated 04/2021)

Please make a donation if you want to help keeping The-Starport online:

Thanks!
Collapse/Expand Links
Collapse/Expand Advertisement
There are currently 60 users playing Freelancer on 44 servers.
May. 29, 2023

Browsing this Thread:   1 Anonymous Users



 Bottom   Previous Topic   Next Topic  Register To Post

(1) 2 3 4 »


FLScanII
Quite a regular
Joined:
2010/5/29 11:40
Group:
Registered Users
Posts: 176
Offline
I'm proud to present you the revolution in Freelancer-Error checking!
Cannon started this project a few weeks ago and asked me to write a few checks.
This was 2,500 lines of code ago

Features:
  • Checks nearly all references in your freelancer-inis
  • Checks for existing hardpoints
  • Useable from the command-line (see FLScanII.exe --help)
  • Opensource!
  • Checks many things existing tools miss!
  • No hardcoded ini-paths (except for mission-checks), all ini-paths will be taken from your freelancer.ini
  • Checked things:
    • Audio
    • Characters
    • Equipment
    • Fonts
    • FX
    • Loadouts
    • Missions (by Cannon)
    • Infocards (by Cannon)
    • Ships
    • Solar
    • Universe
    • Basic asteroid-, nebula- and ring-file-checks
    • Logging to a text-file and coloured html-output!


Version 1.1:
  • many bugfixes
  • Improved error handling
  • All value-lists (HpTypes, for example) are now changeable, see conf.ini

Version 1.2:
  • Logging to a file
    • Normal text-file
    • Coloured HTML
  • Improved error messages
  • Basic asteroid-, nebula- and ring-file-checks

Download: http://forge.the-starport.net/attachm ... load/371/FLScanII_1_2.zip (source included)
You can also browse the source online: http://forge.the-starport.net/projects/flscan2/repository

Have fun with this, and may the fixes be with you!

Posted on: 2012/3/4 17:10
Top
Re: FLScanII
Starport Admin
Joined:
2008/6/24 16:40
From http://www.freeworlds-tow.net/dev
Group:
Registered Users
Starport Admin
$$$ Supporters $$$
Posts: 1123
Offline
YAY!!!

You guys are amazing!

Posted on: 2012/3/4 17:18
Open in new window
Top
Re: FLScanII
Home away from home
Joined:
2008/7/8 21:15
From Germany
Group:
Registered Users
FLServer Admins
Trusted Speciality Developers
Senior Members
Posts: 605
Offline
Great! Such tools are really useful.

Posted on: 2012/3/4 17:28
Top
Re: FLScanII
Just can't stay away
Joined:
2008/2/17 19:44
From Virginia
Group:
Registered Users
FLServer Admins
Senior Members
Posts: 369
Offline
Nice work to you both.

Posted on: 2012/3/4 18:51
http://UnderVerse.us
http://FreelancerCommunity.net
Top
Re: FLScanII
Just can't stay away
Joined:
2008/6/16 20:41
Group:
Registered Users
FLServer Admins
Trusted Speciality Developers
Posts: 312
Offline
On whom i may forward questions or "bugs"? Dont want to use the open thread here.

Ah, forgot to mention that its a great tool and effort you already have put in! Thanks!

Posted on: 2012/3/5 20:43
Open in new window
Top
Re: FLScanII
Just can't stay away
Joined:
2008/5/9 17:27
Group:
Registered Users
FLServer Admins
Trusted Speciality Developers
Senior Members
Posts: 246
Offline

Posted on: 2012/3/5 21:53
Top
Re: FLScanII
Starport Staff
Joined:
2008/10/25 17:58
From On my way back
Group:
Registered Users
Starport Staff
FLServer Admins
Posts: 365
Offline
Nice work guys, caught some more errors with the new tool.

Getting some errors turning up in the log spew
Code:

[info] Parsing Ship-Folder
[error] An error happend while parsing. The scan can't continue. 'Unsupported'   at FLScanIE.Util_Functions.UtfFile..ctor(String filePath)
   at FLScanIE.Util_Functions.Util.ParseNickUTF(String flDataPath, String file, Section section, String nick, String utf, Boolean errorUtf)
   at FLScanIE.ShipChecks.ParseShipFolder()
   at FLScanIE.Checker.Parse(String flPath)

[info] Checking Ship-Folder
[error] An error happend while checking ships 'Value cannot be null.
Parameter name: source'   at System.Linq.Enumerable.Contains[TSource](IEnumerable`1 source, TSource value, IEqualityComparer`1 comparer)
   at System.Linq.Enumerable.Contains[TSource](IEnumerable`1 source, TSource value)
   at FLScanIE.EquipmentChecks.EquipExists(String nick)
   at FLScanIE.ShipChecks.CheckShip(String file, Section ship)
   at FLScanIE.ShipChecks.CheckShipFile(String file)
   at FLScanIE.ShipChecks.CheckShipFolder()


Any ideas? obviously an unsupported & null value in those files, but where?

also
Code:

[info] Checks Loadouts
[error] An error happend while checking loadouts 'Object reference not set to an instance of an object.'   at FLScanIE.LoadoutChecks.CheckLoadouts()
   at FLScanIE.Checker.RunCheck(CheckDelegate check, String name)


I guess a typo in the model name/directory. but where? thats a big file!

Posted on: 2012/3/6 11:22
~Insert Cool Text Description Here~
Top
Re: FLScanII
Quite a regular
Joined:
2010/5/29 11:40
Group:
Registered Users
Posts: 176
Offline
@Hour, use the url crazy posted or just drop them here

@Thaddueus
Thanks for reporting!
I'll work on better error messages today or tomorrow.

The first message is an invalid utf file (it will show you which after the next update)
The 2nd is a bug in FLScanII
The 3rd is bug, too. Are the files you tried to scan public?

Posted on: 2012/3/6 14:36
Top
Re: FLScanII
Just can't stay away
Joined:
2008/6/16 20:41
Group:
Registered Users
FLServer Admins
Trusted Speciality Developers
Posts: 312
Offline
OK tried here, did register on the forge site - but havent any access. Guess it must be activated by an Admin.

So OK here i go. There are quite a few errors reported that are no errors at all:

Code:

[error][systems\CF20\CF20.ini:899:Object:ids_info] ID not found! 499981

The ID 499981 is available and can be found there are others which are reported as well but are available too. I assume that a dll file which contains these entries is not parsed. Its not a vanilla file but its listed in the freelancer.ini

Code:

[error][equipment\goods.ini:3422:Good:hull] Ship hull not found serafina

seems to be a false positive; The correct line is taken from the goods.ini: "hull = Serafina_hull" (the _hull is not getting parsed); the ship hull is definied correctly for this ship and all other ships in the log too.

Code:

[warning] '>' not found at end of ids 65722

Despite its a warning does it have any effect? As far as i have understood from the code this warning is given if the last sign is not the '>'. Mainly if there are space characters at the end. But i have seen that those are checked as well - but the warning is given first. You could trim the string and then check whether there is the closing tag and then report about that warning, or?

Code:

[warning] Duplicate ids 524289

Am i right that this ID is used twice in the ini files and not twice in the dlls? Because i cannot find a 2nd entry in the dll files. But its twice in the inis, whereas one of them isnt used.

Code:

[error] area_nomadsdk2.ini:22 'formation_by_class = fighters': missing formation_by_class, formation_by_class=fighters ref=CF97.ini:571 'encounter = area_nomads, 19, 0.083000'

Any information what is meant with "formation_by_class". I have no clue how to interpret this message ;(

Code:

[error] An error happend while checking fonts 'Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.' bei FLScanIE.FontChecks.CheckFontFolder()
bei FLScanIE.Checker.RunCheck(CheckDelegate check, String name) 

A runtime error that was already reported? Dunno what is tried to check there and failed.

Thats for now. I will report more problems - there are dozen more ;(

Posted on: 2012/3/6 18:18
Open in new window
Top
Re: FLScanII

Joined:
2012/2/23 13:01
From France
Group:
Registered Users
Posts: 26
Offline
Hi, I tried it too, and I'm having errors.
My mod certainly contain real errors, so I'll try to report only execution errors or those I don't understand :

Code:
[error] An error happend while parsing. The scan can't continue. 'La méthode ou l'opération n'est pas implémentée.'   à FLScanIE.EquipmentChecks.ParseGoodFile(String file, List`1& goodNicknames)
   à FLScanIE.EquipmentChecks.ParseEquipmentFolder()
   à FLScanIE.Checker.Parse(String flPath)

(the method or operation is not implemented)

Code:
[error] An error happend while checking loadouts 'La valeur ne peut pas être null.
Nom du paramètre : source'   à System.Linq.Enumerable.Contains[TSource](IEnumerable`1 source, TSource value, IEqualityComparer`1 comparer)
   à System.Linq.Enumerable.Contains[TSource](IEnumerable`1 source, TSource value)
   à FLScanIE.EquipmentChecks.EquipExists(String nick)
   à FLScanIE.LoadoutChecks.CheckLoadoutFile(String file)
   à FLScanIE.LoadoutChecks.CheckLoadouts()
   à FLScanIE.Checker.RunCheck(CheckDelegate check, String name)

(I don't understand the problem or what to look for)

Code:
[error] An error happend while checking ships 'La valeur ne peut pas être null.
Nom du paramètre : source'   à System.Linq.Enumerable.Contains[TSource](IEnumerable`1 source, TSource value, IEqualityComparer`1 comparer)
   à System.Linq.Enumerable.Contains[TSource](IEnumerable`1 source, TSource value)
   à FLScanIE.EquipmentChecks.EquipExists(String nick)
   à FLScanIE.ShipChecks.CheckShip(String file, Section ship)
   à FLScanIE.ShipChecks.CheckShipFile(String file)
   à FLScanIE.ShipChecks.CheckShipFolder()
   à FLScanIE.Checker.RunCheck(CheckDelegate check, String name)

(same)

Code:
[error] An error happend while checking equip 'La référence d'objet n'est pas définie à une instance d'un objet.'   à FLScanIE.EquipmentChecks.CheckEquipmentFile(String file)
   à FLScanIE.EquipmentChecks.CheckEquipmentFolder()
   à FLScanIE.Checker.RunCheck(CheckDelegate check, String name)

(same)

Code:
[error] An error happend while checking fonts 'La référence d'objet n'est pas définie à une instance d'un objet.'   à FLScanIE.FontChecks.CheckFontFolder()
   à FLScanIE.Checker.RunCheck(CheckDelegate check, String name)

(same

Other than that, the other errors I have seem to be real errors, or it tells me where to look for something strange.
The report is maybe a little difficult to understand for non-english and non-freelancer-gurus people (like me), but it's a very good work...

Thank you

Posted on: 2012/3/6 22:32
Top
Re: FLScanII
Starport Staff
Joined:
2008/10/25 17:58
From On my way back
Group:
Registered Users
Starport Staff
FLServer Admins
Posts: 365
Offline
Quote:

M1C wrote:
@Thaddueus
Thanks for reporting!
I'll work on better error messages today or tomorrow.

The first message is an invalid utf file (it will show you which after the next update)
The 2nd is a bug in FLScanII
The 3rd is bug, too. Are the files you tried to scan public?


I'll wait for the update then, thanks. Files are from my own mod, its not public ~yet~

Posted on: 2012/3/6 22:42
~Insert Cool Text Description Here~
Top
Re: FLScanII
Quite a regular
Joined:
2008/6/11 21:00
Group:
Registered Users
Posts: 138
Offline
Guys,

Excellent tool, thanks ver much. If I spot an bugs that aren't already on this thread I'll let you know, but reall impressed with it.

Cheers,
Rik

Posted on: 2012/3/8 7:50
Top
Re: FLScanII
Quite a regular
Joined:
2010/5/29 11:40
Group:
Registered Users
Posts: 176
Offline
Hi people!

@everyone who is experiencing bugs, please try this version:
http://forge.the-starport.net/project ... ry/entry/bin/FLScanII.exe
I improved the error-handling a lot and worked on better messages, most of your bugs were caused by two big bugs which are fixed now.

Thanks for reporting all the bugs!

@Huor:
Could you send me the dll which conains ID 499981?
I'm not familiar with the npc-stuff, sorry :-/

@Thaddeus:
fixed

@ColdFire:
These where FLScanII-bugs, fixed.

Posted on: 2012/3/8 18:16
Top
Re: FLScanII
Starport Staff
Joined:
2008/10/25 17:58
From On my way back
Group:
Registered Users
Starport Staff
FLServer Admins
Posts: 365
Offline
Thanks, its going great, the new version will give me another couple of days work, lol

original errors are gone but latest version caught this

Code:

[error] Could not parse utf file! Unsupported, file: C:\Program Files\Microsoft Games\Freelancer\data\ships\rheinland\rh_elite\rh_elite_dmg_starboard_engine.sur


thats a standard file, havent touched it myself. still has a 2002 timestamp so hasnt changed since install..

all the system files "LightSource"s seem to be picked up as well
Code:
[warning] Unexpected section Ambient in file Systems\Li01\Li01.ini
[warning] Unexpected section LightSource in file Systems\Li01\Li01.ini
[warning] Unexpected section LightSource in file Systems\Li01\Li01.ini
[warning] Unexpected section LightSource in file Systems\Li01\Li01.ini
[warning] Unexpected section LightSource in file Systems\Li01\Li01.ini

[warning][systems\Br04\Br04.ini:Background:228] Setting not found! basic_stars
[warning][systems\Br04\Br04.ini:Background:228] Setting not found! complex_stars


I also use Adoxas EngClass hook so all those pseudo hardpoints are coming up in the spew, not a problem I cant ignore but its a lot of red lines

Code:
[error][ships\shiparch.ini:32634:Ship:hp_type] Invalid hardpoint-type! elite_engine 10
[error][ships\shiparch.ini:32635:Ship:hp_type] Invalid hardpoint-type! elite_power 10


I use
elite_power 1 - 10
fighter_power 1 -10
freighter_power 1 - 10
elite_engine 1 - 10
fighter_engine 1 -10
freighter_engine 1 - 10


Posted on: 2012/3/8 22:01
~Insert Cool Text Description Here~
Top
Re: FLScanII
Quite a regular
Joined:
2010/5/29 11:40
Group:
Registered Users
Posts: 176
Offline
sur-files aren't referenced in the inis, are they? I think that's the problem, use the newest version to find out where it is referenced (same link: http://forge.the-starport.net/project ... ry/entry/bin/FLScanII.exe)
It was searching for "lighsource" fixed, ambient is fixed as well.

You can filter single messages by using the textbox next to the filter-selection.
I'll include a feature to change the list of allowed hp-types, ship-types, etc.

Thanks!

Posted on: 2012/3/9 7:42
Top
(1) 2 3 4 »