Jump to content
Cyclone Boom

Please Note
Releases of SimCityPak are no longer available at CodePlex in their original form.

See this post for details how to obtain versions of the program.

Message added by Cyclone Boom

628 posts in this topic Last Reply

Highlighted Posts

Posted:
Last Online:  
 

...

[/spoiler

 

0 added, with latest rev (lots of dupes)

Share this post


Link to post
Posted:
Last Online:  
 

where oh where did you get the code to convert names into ID's?

 

<.<

 

>.>

 

muhahaha

 

Great work so far guys, I wish I had time to dive into yet another DBPF.

i actully created on such software to until i realized that oppie included a fnv tool in his software.

 

where i found the code was in one of the js files in the .packages

 

@oppie you need to check the saving of unit32 numbers

 

fixed it (i think)

this bit of code caused the problems

file: ViewNumericProperty.xaml.cs

            if (this.DataContext is UInt32Property)
            {
                UInt32Property prop = this.DataContext as UInt32Property;
                try
                {
                    prop.Value = prop.Value = Convert.ToUInt32(txtFloat.Text.Substring(2), 16);
                }
                catch
                {

                }
            }
i changed it to

 

            if (this.DataContext is UInt32Property)
            {
                UInt32Property prop = this.DataContext as UInt32Property;
                UInt32 value;
                if(UInt32.TryParse(txtFloat.Text, out value))
                {
                    prop.Value = value;
                }
            }

Weird things seems to get easier the more i do it... is that a bug?

Share this post


Link to post
Posted:
Last Online:  
 

my instance xml has valid entries not in the latest version at repositriy. i can just turn mine into a keyword file and use trgs new importer to merge them right?

 

downloading vs :(

Share this post


Link to post
Posted:
Last Online:  
 

http://public.justcloud.com/dhyt5mmakz.12889777

 

my InstanceRegistry with @8050 unique id's

 

not sure if i lost any when getting rid of duplicates, but not noticed yet if i did

 

First I will add property ID's to the auto importer, then it's time to look at the XML handling in general. I will implement it as Oppie described in his previous post. I advise people to just make the keyword hash files (CSV) and post them here (so I can include them to my current list) or store them for later use. Importing my current list (100k+ keywords) takes roughly 15 minutes on my i5 CPU.

 

And please let me know if anyone else found a way of looking for possible names, besides just scanning the JS files, maybe it's worth looking into default pre/suffixes?

Share this post


Link to post
Posted:
Last Online:  
 

well now after some work i noticed that Uint32 type propertyID's are actually links to other PropertyID's in other instances (i don't know if this holds true forr all propertyID's of this type)

 

using that knowledge i created a new data layer for testing it 1_test.zip

(place in SimCityData)

 

for instance in my 1_test package the Uint32 PropertyId Array "0x0ebf1df7" has three values

 

  1. 227289590
  2. 227289598
  3. 227289601

 

after converting them into hex you get

 

  1. 0x0d8c29f6
  2. 0x0d8c29fe
  3. 0x0d8c2a01

 

all three can be found in commercial buildings.

 

the numbers can also be found in MNU props check out the MNU for the "Pro Stadium Sign"

 

the uint32 propertID array you want in the mnu instances are "0x0eb1fc22"

 

o yeah those who wonder what the data layer shows it shows "Tourist Allowed Per Day" in a building


Weird things seems to get easier the more i do it... is that a bug?

Share this post


Link to post
Posted:
Last Online:  
 
<Property id="0x0ce48db5" DisplayName="kAlertType?" Comment="" />
  <Property id="0x09b711c0" DisplayName="kheavylayer" Comment="" />
  <Property id="0x0a8df590" DisplayName="kDataBin" Comment="" />
  <Property id="0x0a8df591" DisplayName="kDataBinAmount" Comment="" />
  <Property id="0x08e17ed7" DisplayName="kUnit?" Comment="" />
<Group id="0x8792243b" Abbreviation="DataBinding" DisplayName="DataBinding" Comment="" />
 <Instance id="0x7ea0f73b" groupId="0x40e0e000" typeId="0x00b1b104" DisplayName="civiclight" Comment="" Hidden="false" Tags="" />
  <Instance id="0x5f384bd7" groupId="0x40e0c200" typeId="0x00b1b104" DisplayName="AirPollution" Comment="" Hidden="false" Tags="" />
  <Instance id="0x6987e9e9" groupId="0x40e1c000" typeId="0x00b1b104" DisplayName="Trading_City_Connection" Comment="" Hidden="false" Tags="" />

http://public.justcloud.com/dhywnipw04.12889777

 

my csv (FNV_keywords_file) without the above

Share this post


Link to post
Posted:
Last Online:  
 

property

 

0x0a8df500  databin resource

0x0a8df591  max capacity cap ?

0x0a8df591  initial value ?

 

groupid 0x40e0c700 all the resource/data bins

Share this post


Link to post
Posted:
Last Online:  
 

just built a dictionary from scanning sc5 folders. 1.8mill words to check!!!

 

filtered out ones that have less than 2 occurances as they 99.9% junk but still left with 600k+ words. watch me get @2 new id's ;)

Share this post


Link to post
Posted:
Last Online:  
 

either forgot to turn widows update off, or the fnv importer get too tired and crashed my comp  last night :(

 

trying again with smaller files.

slows.png

 

14k hashes serached while i uploaded the pic, 237 added ! might be nice once done

Share this post


Link to post
  • Original Poster
  • Posted:
    Last Online:  
     

    I've been looking into the decals/raster images lately and I've got them figured out now to the point where I can add a new decal in a separate package file. The property files that hold this stuff together are a pain to work with however, so I'm going to try to build an editor that makes this easier.Here's a screenshot of a completely new custom decal:

    QiB3Ktg.png

    Share this post


    Link to post
    Posted:
    Last Online:  
     

    looks cool. i know nothing of graphics, a decal is a transfer of sorts? clingfilm wrapper around a model so to speak?

    Share this post


    Link to post
  • Original Poster
  • Posted:
    Last Online:  
     

    @potorium - Decals are the logo's, text and other little details which are like little four color 'stickers' that are pasted on buildings and surfaces.

    I added a viewer for the decal dictionaries to SimCityPak that should make viewing (and eventually modifying) them a whole lot easier:

     

    ohFwvv3.png

    • Like 2

    Share this post


    Link to post
    Posted:
    Last Online:  
     

    @potorium - Decals are the logo's, text and other little details which are like little four color 'stickers' that are pasted on buildings and surfaces.

    I added a viewer for the decal dictionaries to SimCityPak that should make viewing (and eventually modifying) them a whole lot easier:

     

    Sweet!

    Share this post


    Link to post
    Posted:
    Last Online:  
     

    dont think any of these match for true fnv hashs but they correctly named (i think ;) )

     

    c added to xml

    Share this post


    Link to post
    Posted:
    Last Online:  
     

    new commit!

     

    • Rewrote XML handling to use Dictionaries instead of lists (improves loading speeds)
    • XML can no longer have any dupes
    • XML will auto apply clean formatting
    • XML user defined values will always be on the bottom of the XML for easy sharing
    • Added InstanceRegistry.clean.xml don't know if this should become the leading reg file later on, only contains FNV valid DisplayNames without any user tags or comments
    • Added a bunch of Group names
    • Some minor menu tweaks
    • Cleanup InstanceRegistry.xml
    • Massively improved the FNV keyword list importing
    • Removed TypeId and GroupId from instances XML / Registry, since there is no use for them

    Share this post


    Link to post
    Posted:
    Last Online:  
     

    i'm making a trgs statue to place in whichever park gets modded first!!  spent all day messing up my xml trying to merge several scans and get rid of duplicates :)

     

    will combine the new one with mine and post up link to a csv for it later

    Share this post


    Link to post
    Posted:
    Last Online:  
     

    looks like my InstanceRegistry.clean.xml is being lost after importing this cvs http://public.justcloud.com/di2ctw354j.12889777

     

    the user defs one still there but no change in file size.

     

    You have to rename InstanceRegistry.clean.xml to InstanceRegistry.xml if you want to update it. I've just added the clean one to the repos as a reference.

    Or did you already do that?

    Share this post


    Link to post
    Posted:
    Last Online:  
     

    importing that csv file from above keeps hanging but must be the file. if i cancel it after  its hung and import an empty file my xml seems to be updating fine

    Share this post


    Link to post
    Posted:
    Last Online:  
     

    importing that csv file from above keeps hanging but must be the file. if i cancel it after  its hung and import an empty file my xml seems to be updating fine

    I noticed a bug that has something to do with the threads not finishing up after a first run. Try loading a small list, wait for it to complete and then load your big list. Let me know if that helps. Working on a proper fix. to be continued...

    Share this post


    Link to post
    Posted:
    Last Online:  
     

    yeah, looked like it was sticking at the end, thought it was struggling to form the xml because maybe it had error in the cvs file. when i threw an emtpy file import at it straight after it looks to have saved fine.

    <Group id="0x83831425" Abbreviation="R_City tiles" DisplayName="Edgewater Bay City tiles container" Comment="" />
    

    these work as group ids? is there a way for them not to show up in the group selection box, but the corrcet one be named when its displayed by selecting its region container. hidden tag may work, not tried it yet in the tgi

    <Group Id="0x8b7d9365" Abbreviation="R_EdgeWaterBay" DisplayName="R_EdgeWaterBay" />
    

    edit removed spolier tag

    Share this post


    Link to post
    Posted:
    Last Online:  
     
     added to xml

    hidden tag doesn't hide :D can that be added as option and only hide when displaying in the groups drop down list? save cluttering it up.  the city containers  named as this code block, is easy accessible via selecting the region container(drop down list) -> city container field

     

      <Property Id="0xfb7a85a0" DisplayName="city tile containers" Comment="" />

    Share this post


    Link to post
    Posted:
    Last Online:  
     

    Ok, just committed a temporary fix for the FNV importer. I disabled the multi-threading, because there was (is) a race condition causing some threads not to close properly.

    I've also added some new FNV valid instance names, first result of my (work in progress) default name prefixer. Importing will be 4 times as slow as normal, but at least it will always save the results. Still Importing @ 1k validations per second on my i5 CPU.

    Share this post


    Link to post
    Posted:
    Last Online:  
     

    the fnv scanner doesn't check the property values when deciding to save a hash?

     

    gambling,0xd7cce66c has tons of hits when searching for prop value containing it. but not via scanner.  You able to change the scanner for that?

    Share this post


    Link to post

    Sign In or register to comment...

    To comment in reply, you must be a community member

    Sign In  

    Already have an account? Sign in here.

    Sign In Now

    Create an Account  

    Sign up to join our friendly community. It's easy!  

    Register a New Account

    ×

    Thank You for the Continued Support!

    Simtropolis depends on donations to fund site maintenance costs.
    Without your support, we just would not be in our 24th year online!  You really help make this a great community. *:thumb:

    But we still need your support to stay online. If you're able to, please consider a donation to help us stay up and running. This helps sustain a platform where we can share our community creations for years to come.

    Make a Donation, Get a Gift!

    Expand your city with the best from the Simtropolis Exchange.
    Make a Donation and get one or all three discs today!

    STEX Collections

    By way of a "Thank You" gift, we'd like to send you our STEX Collector's DVD. It's some of the best buildings, lots, maps and mods collected for you over the years. Check out the STEX Collections for more info.

    Each donation helps keep Simtropolis online, open and free!

    Thank you for reading and enjoy the site!

    More About STEX Collections