Jump to content
Cyclone Boom

STEX_Custodian_Logo_v1.png

Message added by Cyclone Boom

67 posts in this topic Last Reply

Highlighted Posts

Posted:
Last Online:  
 

I was looking at it for a little bit last night and it's super handy finally having a way to organize all the props. As of right now it's giving me "Your file couldn’t be accessed" for everything but I'm guessing it's being updated or something right now? Also if you need someone to help further organize everything for future updates I'm willing to do that.

  • Thanks 2

Share this post


Link to post
Share on other sites
Posted:
Last Online:  
 
10 hours ago, Rott said:

As of right now it's giving me "Your file couldn’t be accessed" for everything but I'm guessing it's being updated or something right now?

You can't download from here?

10 hours ago, Rott said:

Also if you need someone to help further organize everything for future updates I'm willing to do that.

Thanks! I'm pretty covered from the organization side (at least i think so far). If you have any ideas or want to contribute in any other way, I'd love to see it.

  • Like 2

Looking for a prop or texture? The SC4 Prop & Texture Catalog might help! View online here.

Share this post


Link to post
Share on other sites
Posted:
Last Online:  
 

I should have specified, the download was fine, and I was looking through the catalogue it was fine until a certain point, then I was getting that "File cant be accessed'' message, no clue why I don't think I changed anything. But I downloaded it again and it seems to work just fine now.

Is there plans to create even more subcategories for the catalogue? Things like vehicles, trees are all there organized nicely into subcategories, if there was even more it would be great, or if there was even a search engine for a certain prop, in case someone is in dire need of an igloo etc

This is a great feature, it will save us all oodles of time.

  • Like 3

Share this post


Link to post
Share on other sites
Posted:
Last Online:  
 
On 1/6/2021 at 11:47 PM, Rott said:

Is there plans to create even more subcategories for the catalogue? Things like vehicles, trees are all there organized nicely into subcategories, if there was even more it would be great, or if there was even a search engine for a certain prop, in case someone is in dire need of an igloo etc

That's pretty much exactly the plan. I would love to have a much more granular search option to be able to find something specific like "traffic cones"; the "lorem ipsums" you see are basically placeholders for that text. I'm planning on playing around with a couple things to see if I can easily extract prop names en masse as doing it manually would suck. If you or anyone has ideas, I'm all ears, but otherwise, if you're interested I can keep you posted on what I find out.

As a tangent, I think it also might be helpful to have an index by IID, in case anyone needs to track down specific missing dependencies.

  • Like 3
  • Yes 1

Looking for a prop or texture? The SC4 Prop & Texture Catalog might help! View online here.

Share this post


Link to post
Share on other sites
Posted:
Last Online:  
 
6 minutes ago, nos.17 said:

I'm planning on playing around with a couple things to see if I can easily extract prop names en masse as doing it manually would suck.

I've no idea how many files there are, but on a per .dat file basis I've already written code that can pull out every property (like Reader sees them) of every exemplar and write them to a text file. That includes the name as listed in the exemplar. It cannot, however, handle more than one .dat at a time.

  • Like 2

Chance favors the prepared mind. ― Louis Pasteur  
Remember, a few hours of trial and error can save you several minutes of looking at the README. -- I Am Devloper (on Twitter)

Clickable ---> The Best of Cori's Posts  (scroll down a wee bit there)    Something fun: MySimtropolis - Invitation to become a SimCity 4 MySim

Are you new here? Check out the Introduction and Guide to Simtropolis.

Share this post


Link to post
Share on other sites
Posted:
Last Online:  
 
13 hours ago, CorinaMarie said:

I've no idea how many files there are, but on a per .dat file basis I've already written code that can pull out every property (like Reader sees them) of every exemplar and write them to a text file. That includes the name as listed in the exemplar. It cannot, however, handle more than one .dat at a time.

Interesting....would you mind sending that over?

  • Like 2

Looking for a prop or texture? The SC4 Prop & Texture Catalog might help! View online here.

Share this post


Link to post
Share on other sites
Posted:
Last Online:  
 
3 hours ago, nos.17 said:

Interesting....would you mind sending that over?

And it could be customized to only output what you want or you can just bookmark lines using N++ to filter that way.

  • Like 2
  • Thanks 1

Chance favors the prepared mind. ― Louis Pasteur  
Remember, a few hours of trial and error can save you several minutes of looking at the README. -- I Am Devloper (on Twitter)

Clickable ---> The Best of Cori's Posts  (scroll down a wee bit there)    Something fun: MySimtropolis - Invitation to become a SimCity 4 MySim

Are you new here? Check out the Introduction and Guide to Simtropolis.

Share this post


Link to post
Share on other sites
Posted:
Last Online:  
 

 

🎉 There is now have a fully online version of the catalog available for browsing. 🎉

IAgC-BZDRi_NA0Z4T4wXhg.png

Thanks to some excellent work by @Cyclone Boom and @CorinaMarie, if you choose to not download 100mb of content or always want to have the most up to date version, this is your best bet!

 


  Edited by nos.17  

fixed image
  • Like 7

Looking for a prop or texture? The SC4 Prop & Texture Catalog might help! View online here.

Share this post


Link to post
Share on other sites
Posted:
Last Online:  
 

Sharing a quick update. The past few days I've been trying to develop a workflow that would allow me to index the names of 10s of thousands of individual prop names. I imagine the next iteration for the catalog to include the functionality for users to be able to type in a phrase and return all props that have that substring in the exemplar name(e.g. type in 'news' and ' wmp_newsstand ', among others, would be returned alongside its TGI and origin pack.

For that, I needed to put together a new workflow to automate as much of that as I can

For each prop pack, I run a LUA script that outputs the TGI and ExemplarName as a comma separated text file.

Spoiler

-- ===================================================================================================================
-- Name: main
-- Desc: Writes Type, Group, Instance, Exemplar name as comma separated list to text file
-- Params: 	N/A
-- Called by: N/A
-- Comments: N/A
-- ===================================================================================================================
function reader.main (this)   
    local file = io.open("C:/Users/Administrator/OneDrive/SC4 Deps/SC4PropTextureCatalog/working/exemplarexport.txt", "w")
    entryidx = reader:entries_GetHeadPosition()     
    while entryidx~=0 do
        entry,entryidx = reader:entries_GetNext(entryidx)
        flag = reader:entry_GetFlag(entry)  
        if (flag == 7) then
            exemplar = reader:ex_Decode(entry) 
            exemplaridx = reader:exprop_GetHeadPosition(exemplar)  
            while exemplaridx~=0 do
                exprop, exemplaridx = reader:exprop_GetNext(exemplar,exemplaridx)
                desc, descname = reader:exprop_GetDesc(exprop)  
                valuestr = reader:exprop_GetValueStr(exprop)
				T,G,I = reader:entry_GetTGI(entry)
                if (descname == "Exemplar Name") then
                    file:write(Dec2Hex(T,8)," ",Dec2Hex(G,8)," ",Dec2Hex(I,8)," ",valuestr,"\n")
					break 
                end
            end
        end
    end
    reader:refresh()
    file:close()
end


-- ===================================================================================================================
-- Name: Dec2Hex
-- Desc: Returns a hex number prepended (if necessary) with zeros up to a specified length
-- Params: 	dec ... decimal number to convert
-- 			hexLen ... length to prepend zeros if hex is shorter than specified length (usually 8)
-- Called by: reader.main
-- Comments: N/A
-- ===================================================================================================================
function Dec2Hex(dec,hexLen)
    hex = string.rep("0", (hexLen - (string.len(string.format("%x", dec))))) .. string.format("%x", dec)
    return hex
end

 

The text file gets loaded into an excel table via PowerQuery, where some rudimentary column transformations are applied, resulting in the table below.

Ijf03yHmTCaHWJVKcIEBtg.png

The next step is to use my little VBA button to append the new props to the end of the main table, which lists all the props in the index and generates the html via a rather long excel formula.

=CHAR(9)&CHAR(9)&"<tr>"&CHAR(10)&CHAR(9)&CHAR(9)&CHAR(9)&"<td>"&[@Pack]&"</td>"&CHAR(10)&CHAR(9)&CHAR(9)&CHAR(9)&"<td>"&[@TGI]&CHAR(10)&CHAR(9)&CHAR(9)&CHAR(9)&"<td>"&[@Prop]&"</td>"&CHAR(10)&CHAR(9)&CHAR(9)&"</tr>"

xgaD0B1GQha_mOJ9N4XesA.png

The last step involves manually filling the 'Pack' column. From here I can pretty much copy that HTML into NPP and find/replace a few extra quotations that are required for the excel formulas.

Unfortunately I have not yet found a way to automatically import that information - as far as I know LUA functions for reader do not expose any parameters outside of the exemplars themselves. As far as manual intervention, I guess it's not too bad. :}

 


 

Anyway, using that workflow, I mocked up version 1.1 (or maybe 2.0?) of the catalog with only 5 prop packs from WMP. @Rott is this something like you had in mind? I've attached the files to this post if anyone wants to give it a try.

BlGaSQQ.gif

Simcity4PropTextureCatalog.html

catalog.css


  Edited by nos.17  

Added gif instead
  • Like 6
  • Yes 1

Looking for a prop or texture? The SC4 Prop & Texture Catalog might help! View online here.

Share this post


Link to post
Share on other sites
Posted:
Last Online:  
 
13 minutes ago, nos.17 said:

Unfortunately I have not yet found a way to automatically import that information - as far as I know LUA functions for reader do not expose any parameters outside of the exemplars themselves. As far as manual intervention, I guess it's not too bad.

I'm uncertain what you need automatically imported, but my code you've modified could have additional lines added to output something into the .csv table.

  • Like 1

Chance favors the prepared mind. ― Louis Pasteur  
Remember, a few hours of trial and error can save you several minutes of looking at the README. -- I Am Devloper (on Twitter)

Clickable ---> The Best of Cori's Posts  (scroll down a wee bit there)    Something fun: MySimtropolis - Invitation to become a SimCity 4 MySim

Are you new here? Check out the Introduction and Guide to Simtropolis.

Share this post


Link to post
Share on other sites
Posted:
Last Online:  
 
7 minutes ago, CorinaMarie said:

I'm uncertain what you need automatically imported, but my code you've modified could have additional lines added to output something into the .csv table.

Sorry I probably was not super clear before. Name of dat was what I was looking for.


Looking for a prop or texture? The SC4 Prop & Texture Catalog might help! View online here.

Share this post


Link to post
Share on other sites
Posted:
Last Online:  
 
23 minutes ago, nos.17 said:

Sharing a quick update...

The search bar/autocomplete feature there is exactly what I was thinking, some of the pics in that post have broken links for me though so I'm not sure of the other ideas yet but that is looking great...

Share this post


Link to post
Share on other sites
Posted:
Last Online:  
 

Try this:

function reader.main (this) 
    PackName = "type the pack name inside these double guote marks" -- Cori added line
    local file = io.open("C:/Users/Administrator/OneDrive/SC4 Deps/SC4PropTextureCatalog/working/exemplarexport.txt", "w")
    entryidx = reader:entries_GetHeadPosition()     
    while entryidx~=0 do
        entry,entryidx = reader:entries_GetNext(entryidx)
        flag = reader:entry_GetFlag(entry)  
        if (flag == 7) then
            exemplar = reader:ex_Decode(entry) 
            exemplaridx = reader:exprop_GetHeadPosition(exemplar)  
            while exemplaridx~=0 do
                exprop, exemplaridx = reader:exprop_GetNext(exemplar,exemplaridx)
                desc, descname = reader:exprop_GetDesc(exprop)  
                valuestr = reader:exprop_GetValueStr(exprop)
				T,G,I = reader:entry_GetTGI(entry)
                if (descname == "Exemplar Name") then
                    file:write(Dec2Hex(T,8)," ",Dec2Hex(G,8)," ",Dec2Hex(I,8)," ",valuestr,"," ","PackName,"\n") -- Cori altered
					break 
                end
            end
        end
    end
    reader:refresh()
    file:close()
end

^ You will have to alter that second line for each pack you are outputting and be sure there are no commas in between the double quote marks. Also note: I only quoted the relevant block of code. You still need the rest of it too.

If it doesn't work, I'll do actual testing, but I believe this'll do what you want. *;)

  • Like 3

Chance favors the prepared mind. ― Louis Pasteur  
Remember, a few hours of trial and error can save you several minutes of looking at the README. -- I Am Devloper (on Twitter)

Clickable ---> The Best of Cori's Posts  (scroll down a wee bit there)    Something fun: MySimtropolis - Invitation to become a SimCity 4 MySim

Are you new here? Check out the Introduction and Guide to Simtropolis.

Share this post


Link to post
Share on other sites
Posted:
Last Online:  
 

@chfzdn ... I deconstructed your review here. It's better if you leave feedback in this thread so we can have a better discussion. I do appreciate your feedback though. :thumb:

Quote

Nice job. But the interface is certainly needs some polish. For instance, there should be a highlight color for selected subcategory much like the main category.

Noted. Issue #1. I was struggling with the javascript, so I just decided to push as is considering its only a small cosmetic bug.

Quote

Also, having a search bar is nice addition since there will be hundreds of mods and scrolling thru the page is a pain.

See demo in this post above.

Quote

In the future, the images used to show the families can be converted to a separate HTML-based page that can be interacted.

Not sure exactly what you mean by this? Do you mean that when you click on the photo of a prop pack it should take you to a new page that breaks out the individual props in that pack? What would be the benefit of that? How would that be more useful than just a list of all props with their ExemplarName, TGI, and origin pack (as I linked above)?

Quote

When you click the prop/building/texture, it shows exactly the TGI, not just the Instance.

Does my table I linked above solve this?

Quote

Also, LEX type of interface (built using Bootstrap) is also nice. But if you aren't fond of Bootstrap, that's okay. Other frameworks or make it yourself is nice, too.

I too like how the LEX looks. I'm not going to do that for a few reasons:

  1. I wrote (or customized) all of the HTML/CSS/JS myself; see next point.
  2. This whole thing putting together HTML, CSS, and JS has been a total learning experience for me. I had only a little HTML experience years ago in high school, so I had to relearn a fair amount of things - I still consider myself a beginner.
  3. I don't know anything about using it, and as far as new things to learn, I'm not going to. I've got other plans on my long-term radar (C/C++ for some reader improvements are one of them).
  4. I want to keep the entire package as small and as simple as possible, so minimizing the dependencies and codebase is a priority.
  • Like 4

Looking for a prop or texture? The SC4 Prop & Texture Catalog might help! View online here.

Share this post


Link to post
Share on other sites
Posted:
Last Online:  
 
6 hours ago, nos.17 said:

@chfzdn ... I deconstructed your review here. It's better if you leave feedback in this thread so we can have a better discussion. I do appreciate your feedback though. :thumb:

Noted. Issue #1. I was struggling with the javascript, so I just decided to push as is considering its only a small cosmetic bug.

See demo in this post above.

Not sure exactly what you mean by this? Do you mean that when you click on the photo of a prop pack it should take you to a new page that breaks out the individual props in that pack? What would be the benefit of that? How would that be more useful than just a list of all props with their ExemplarName, TGI, and origin pack (as I linked above)?

Does my table I linked above solve this?

I too like how the LEX looks. I'm not going to do that for a few reasons:

  1. I wrote (or customized) all of the HTML/CSS/JS myself; see next point.
  2. This whole thing putting together HTML, CSS, and JS has been a total learning experience for me. I had only a little HTML experience years ago in high school, so I had to relearn a fair amount of things - I still consider myself a beginner.
  3. I don't know anything about using it, and as far as new things to learn, I'm not going to. I've got other plans on my long-term radar (C/C++ for some reader improvements are one of them).
  4. I want to keep the entire package as small and as simple as possible, so minimizing the dependencies and codebase is a priority.

The image has some name truncation issues. Definitely needs to be fixed.

Share this post


Link to post
Share on other sites
Posted:
Last Online:  
 
7 hours ago, nos.17 said:

I've got other plans on my long-term radar (C/C++ for some reader improvements are one of them).

Oooo! If you post about this when the time comes, please beep me. I'm interested. *:)

  • Like 1
  • Yes 2

Chance favors the prepared mind. ― Louis Pasteur  
Remember, a few hours of trial and error can save you several minutes of looking at the README. -- I Am Devloper (on Twitter)

Clickable ---> The Best of Cori's Posts  (scroll down a wee bit there)    Something fun: MySimtropolis - Invitation to become a SimCity 4 MySim

Are you new here? Check out the Introduction and Guide to Simtropolis.

Share this post


Link to post
Share on other sites
Posted:
Last Online:  
 
5 minutes ago, CorinaMarie said:

Oooo! If you post about this when the time comes, please beep me. I'm interested. *:)

Reader is definitely should be reworked for a long while.

Share this post


Link to post
Share on other sites
Posted:
Last Online:  
 

A few days ago I just pushed a beta release for 2.0.0 just to show some progress. It's a beta, so it's not quite optimized (the table loads pretty slowly) and only contains a portion of the prop + texture packs. If you have the time, please give it a look.

So far I've indexed individual props for prop packs named N-Z. That's 105/383 (27.4%) of the packs in my list, for a total of 20620 props so far.

Lots more work to do! *:P

  • Like 1
  • Thanks 3

Looking for a prop or texture? The SC4 Prop & Texture Catalog might help! View online here.

Share this post


Link to post
Share on other sites
Posted:
Last Online:  
 

🎉 Version 2.0.0 is now live. Get it here 🎉

 

Improvements in version 2.0.0 include the ability to search for props by exemplar name or by TGI. 320 prop packs have been indexed for a total of 40758 props.

Looking for something specific? Trash can? Dock? Hydrant? This can help!

Have a TGI you found in Reader and want to know what it is or what pack it belongs to? Look it up here!

2.gif

  • Like 5
  • Thanks 2

Looking for a prop or texture? The SC4 Prop & Texture Catalog might help! View online here.

Share this post


Link to post
Share on other sites
Posted:
Last Online:  
 

New version is starting to look very slick.  As a consequence came here to add that if you use SC4DataNode on a set of plugins you can export data on the all of various categories of exemplars into a csv file that excel or some other code can manipulate. The fields you have currently are in those exports so that might save some time on big plugin sets.  

In fact from an inverse perspective your catalog now gives a way to resolve missing dependencies with DataNode - it knows what the TGIs are that are missing but until now they stayed a guess. Eventually it would/may be plausible for DataNode to query the database directly 

  • Like 6
  • Thanks 1

Share this post


Link to post
Share on other sites
Posted:
Last Online:  
 

🎉 Version 2.1.1 is now live. Get it here 🎉

Changes in this version (since 2.0.0) include:

  • Numerous inconsistencies in file names addressed
  • Added girafe flora props, AP sim workers, and misc. other missing packs
  • Added texture TGIs to searchable list
  • Tweaks for hosting at Simtropolis
  • Like 6
  • Thanks 2

Looking for a prop or texture? The SC4 Prop & Texture Catalog might help! View online here.

Share this post


Link to post
Share on other sites
Posted:
Last Online:  
 

Hi nos

Great work you are doing!

I wonder if there is a way to also search by authors name.

Thanks again for this colossal undertaking

Simmer2

  • Like 3
  • Yes 1

There are those who lead and those who follow. Don't look too far...

Visit my lots and BATs thread here at ST https://community.simtropolis.com/forums/topic/71467-simmer2s-lots-and-bats-lab/?page=3#comment-1663504

Or at SC4D https://sc4devotion.com/forums/index.php?topic=17211.920

w11resized2.png

Share this post


Link to post
Share on other sites
Posted:
Last Online:  
 
3 hours ago, nos.17 said:

🎉 Version 2.1.1 is now live. Get it here 🎉

Changes in this version (since 2.0.0) include:

  • Numerous inconsistencies in file names addressed
  • Added girafe flora props, AP sim workers, and misc. other missing packs
  • Added texture TGIs to searchable list
  • Tweaks for hosting at Simtropolis

Thank you so much! This is just incredibly helpfull. Seriously I don't think many of the people would realize the scale of this indexes and how helpfull it could be. Yesterday I got a file which is locked down due to missing listed DEPs and other fun stuffs over at LEX and I loaded the lot with the listed dependencies into SC4 Tool, then I started going through on the missing props and it was fast and easy just typing a few characters and the answere was there :) I'm gonna check it deeper (texture IID part will be really usefull), this database is crazy usefull. 

- Tyberius

  • Like 3
  • Thanks 1

I'm responsible for the Heretic uploads a.k.a. Heretic Projects, you may find updates about my ongoing projects into my development thread over at SimCity 4 DevotionTyberius Lotting Experiments or here on Simtropolis into the Tyberius (Heretic Projects) Lotting and Modding Experiments OR Show Us What You're Working On thread.

Now I'm part of the NAM Team and the RTMT Team.
I'm also working on some preservation and reorganization projects the behalf of non-anymore-active-developers and with the permission of the Staffs both on STEX and LEX. Current projects: SimcityPolska Restoration and WMP (WorkingManProduction) Restoration.

Share this post


Link to post
Share on other sites
Posted:
Last Online:  
 

Hi nos.

Unfortunately I can't see that pic but I bet its epic!

Simmer2

  • Like 1

There are those who lead and those who follow. Don't look too far...

Visit my lots and BATs thread here at ST https://community.simtropolis.com/forums/topic/71467-simmer2s-lots-and-bats-lab/?page=3#comment-1663504

Or at SC4D https://sc4devotion.com/forums/index.php?topic=17211.920

w11resized2.png

Share this post


Link to post
Share on other sites
Posted:
Last Online:  
 
On 2/27/2021 at 1:01 PM, Simmer2 said:

I wonder if there is a way to also search by authors name.

Wonder no more. Nos.17 is doing wonders. Keep up the fantastic work @nos.17, the catalogue is fantastic! *:thumb:*:thumb:

  • Like 1

Kloudkicker
Life's cold and I'm chillin
Kloudkicker's Lot Creations
Kloudkicker's Tech Tools, News and More

 

Share this post


Link to post
Share on other sites
Posted:
Last Online:  
 

🎉 Version 2.2.0 is now live. Get it here 🎉

Changes in this version (since 2.1.1) include:

  • Added Author column to SearchTable
  • Added multiple prop + texture packs by Fantozzi, gizmo28, Mary Maurine Mayo, RebaLynnTS, Oidaas, AP, and more.

 

(it's actually been live for a few weeks, but I had forgotten to make an announcement about it - sorry)

  • Like 3
  • Thanks 3

Looking for a prop or texture? The SC4 Prop & Texture Catalog might help! View online here.

Share this post


Link to post
Share on other sites

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