Special Aircraft Service

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1] 2   Go Down

Author Topic: New missingObjects tool  (Read 2919 times)

0 Members and 1 Guest are viewing this topic.

Nowekat

  • Modder
  • member
  • Offline Offline
  • Posts: 152
New missingObjects tool
« on: June 23, 2019, 11:55:49 AM »



Version V.1.2:
Code reviewed, some code lines improved for better speed.

New in version V.1.1:
Functions to list or to delete multiple static.ini entrys and to renumber the objects or to remove the numbers.

Before deleting objects or renumbering a copy of the existing static.ini is made with the date, hour and minute of the copy. No further action will be taken if the copying failes whyever. So there allways is a security copy. I tested the funcitions carfully but can not garanty that there is no malfunction no matter what the conditions are. So i recomend to keep the copy. It is stored in the related static.ini folder.

If you use a renumbered static.ini, use the renumber function to update the numbers. There is no need to remove the numbers first.

If your static.ini allready is renumbered, the renumber function works only if the numbering is in the universal.static.iniChecker format, but i don't know any other tool that renumbers the objects.

---------------------------------


This tool i wrote just as i wanted to know how the universal.static.ini.checker works. It has the same funcionality limited to find missing objects. But it is a little bit more confortable here, as it stores pathes to several installations and so you can check the questionable static.ini simply by clicking onto one of the pathes so there is no need to redefine the path to the static.ini everytime.

Usage:

Define your static.ini file pathes with 'Edit static.ini pathes/Select new Static.ini path" and using than the file requester first. Thise pathes will be something like "(game)\Bat\#SAS\STD\com\maddox\il2\objects\static.ini".

Delete a wrong or obsolete entry with 'Edit static.ini pathes/Delete path to static.ini' and click left than onto the path to delete.

To select the static.ini you want to check click left onto the static.ini path entry in question.
Than click "Select actors.static" and select the actors.static in question with the file requester.

If all objects are found in the static.ini, the message "All objects found in your static.ini" is shown, otherwise the "MissingObjects.txt" is created and opened. Its the same as with the univ.checker here.

If the object 'buildings.House$]SEchurch10' is listed, you need a fixed actors.static and static.ini entry without that bracket in the middle.

You may download the tool here:

https://www.mediafire.com/file/ifwgrbsbnj99s1z/CheckStaticini.7z/file

Please report any flaws.

Nowekat


Logged

Flying H

  • member
  • Offline Offline
  • Posts: 1347
  • "And you can fly, high as a kite if you want to..
Re: New missingObjects tool
« Reply #1 on: June 23, 2019, 03:58:04 PM »

I get an errormessage, file is missing!
Logged
And you can fly, high as a kite, if you want to.........

Epervier

  • 4.09 Guardian Angel !
  • SAS Team
  • member
  • Offline Offline
  • Posts: 9556
  • I'm French and Rebel_409! Nobody is perfect!
    • Some tinkering here
Re: New missingObjects tool
« Reply #2 on: June 23, 2019, 04:16:22 PM »

Link no work !  :-X

Gloups ! Grilled !
Logged
If your results do not live up to your expectations, tell yourself that the great oak was once an acorn too. - Lao Zi -

Nowekat

  • Modder
  • member
  • Offline Offline
  • Posts: 152
Re: New missingObjects tool
« Reply #4 on: June 23, 2019, 11:55:30 PM »

The right link is

https://www.mediafire.com/file/ifwgrbsbnj99s1z/CheckStaticini.7z/file

The link is also fixed in the first post.

The link in the post above is related to the old Universal_Static.iniChecker.
Logged

Nowekat

  • Modder
  • member
  • Offline Offline
  • Posts: 152
Re: New missingObjects tool
« Reply #5 on: June 30, 2019, 03:40:08 AM »

I updated to version 1.1:

Functions to list or to delete multiple static.ini entrys and to renumber the objects or to remove the numbers added.

Before deleting objects or renumbering a copy of the existing static.ini is made with the date, hour and minute of the copy. No further action will be taken if the copying failes whyever. So there allways is a security copy. I tested the funcitions carfully but can not garanty that there is no malfunction no matter what the conditions are. So i recomend to keep the copy. It is stored in the related static.ini folder.

If you use a renumbered static.ini, use the renumber function to update the numbers. There is no need to remove the numbers first.

If your static.ini allready is renumbered, the renumber function works only if the numbering is in the universal.static.iniChecker format, but i don't know any other tool that renumbers the objects.

This may be the final version, if i don't notice a critical flaw or find an other usefull function to add ;-)

The link remains the same in the first post.

Nowekat

Logged

Kelso

  • member
  • Offline Offline
  • Posts: 497
Re: New missingObjects tool
« Reply #6 on: June 30, 2019, 09:03:43 AM »

With me trying to delete duplicate entries several times - no copy has ever been created. When numbering entries - a copy created correctly. Version 1.1.
The operation of deleting duplicate entries lasted ~ 2 minutes - take this into account when using this option. An indication of the end of the program's work is the appearance of the file: MultipleStatic_Deleted.txt on the desktop


I've waited a long time for a program that will clean up my duplicate static.ini entries. Thanks a lot!
Logged

Nowekat

  • Modder
  • member
  • Offline Offline
  • Posts: 152
Re: New missingObjects tool
« Reply #7 on: June 30, 2019, 10:53:51 AM »

Thank you Kelso, you are right. The function to copy the static.ini before deleting entrys was gone, i have no idea why and when. It's relly shocking i didn't notice that. I fixed that in the downlowd.

Reworking a static.ini should take a second at least. But i found, that when repeating the listing or deleting function, an internal list wasn't cleared before beeing filled again with the multiple entrys. Thats was an other bad flaw in any case.  I hope that did not ruin your static.ini. I also fixed that, but i'm not shure if this is the only reason for the delayed operation.

Would you be so kind to download and test the tool again?  It's still V.1.1, but the changes are marked in the readme.

To bad, i just hope nothing irreparable happened.

Nowekat.

   
Logged

Kelso

  • member
  • Offline Offline
  • Posts: 497
Re: New missingObjects tool
« Reply #8 on: June 30, 2019, 12:29:18 PM »

Nothing has happened - I have created my copy in advance - do not worry.
I also checked the correctness of removing duplicate entries - with all the actors.static files that I have a new / cleaned static.ini file still contained all the necessary entries. Bravo!
I will test the 'new' version and let me know.

Edit:
After testing:
1 Now deleting duplicate entries actually takes a few seconds.
2 Copies are created correctly before deleting / adding numbering.
Consider adding a copy of the extension to the files - eg .bat. Now the extension is the number of seconds from the date - it does not look good.
At the moment I have no objections. Thanks again!
Logged

Nowekat

  • Modder
  • member
  • Offline Offline
  • Posts: 152
Re: New missingObjects tool
« Reply #9 on: July 01, 2019, 11:39:23 AM »

Hallo Kelso,

i am glad to hear nothing serious happened. I assume i disabled the copy function after testing it to avoid a flood of copies at further testing. And than i deleted all disabled code ...

This and the not cleared list are the only flaws i found, so the hotfixed V1.1 should be save. But i will review the code again in the next days and upload a version 1.2. then.

The copies name scheme indeed doesn't look nice but helps to identify the sequence of the copies. When testing again i was irritated, that often no new copy seemed to be created. In reality it was created, but as the files name only included the minute of copying, the name often was the same when repeating the action within a minute. So in added also the second of copying to the files name.

Nowekat
Logged

Nowekat

  • Modder
  • member
  • Offline Offline
  • Posts: 152
Re: New missingObjects tool
« Reply #10 on: July 04, 2019, 11:10:05 AM »

I reviewed the code and tested again and found no further bugs but only improved some code lines for better speed.

So Version V.1.2 is nearly the same as the fixed V.1.1, only a little bit faster. I updated the download in the first post. The link remains the same.

Nowekat
Logged

Uzin

  • Modder
  • member
  • Offline Offline
  • Posts: 2816
  • On lifetime holidays
Re: New missingObjects tool
« Reply #11 on: July 05, 2019, 08:51:26 AM »

@Nowekat:
You made nice work, thank you very much.
As you know, both yours and former checker compare actors.static file with static.ini one, so searching for missing objects as a reason  why missionsa are not saved.
There is also a bit rarer situation, when there are  no missing objects declared but the objects are missing in 3do folders. The missions are still not saving. It would be nice if you can include also this checking into the program.
Logged
Pages: [1] 2   Go Up
 

Page created in 0.042 seconds with 24 queries.