Jump to content
  •   Announcement

  •    Alternatively see here for an enhanced Google site search, which you may find provides more accurate search results. (More Info)

Search the Community

Showing results for tags 'dbpf'.



More search options

  • Search By Tags

    Type tags separated by commas. These are keywords which should describe the item of content.
  • Search By Author

Content Type


Forums

  • Simtropolis Department of Public Works
    • Simtropolis Recovery Project
    • The Planning Commission
  • SimCity 4 Players Forum
    • SimCity 4 General Discussion
    • SC4 Showcase
    • SC4 City Journals
    • SC4 Mac Users
    • SC4 Bugs & Technical Issues
  • SimCity 4 Builders Forum
    • SC4 - Custom Content
    • Mapping Community Room
    • SC4 BAT & Lot Workshop
    • SC4 Modding - Open Discussion
    • NAM & Transit Networks
  • Cities: Skylines & CS2
    • Cities: Skylines General Discussion
    • Cities: Skylines Modding - Open Discussion
    • Cities: Skylines Showcase
    • Cities: Skylines City Journals
    • Cities: Skylines Technical Help Q&A
  • SimCity (2013)
    • SimCity (2013) General Discussion
    • SimCity (2013) Modding - Open Discussion
    • SimCity (2013) Region Games
    • SimCity (2013) Showcase
    • SimCity (2013) Technical Help Q&A
  • Simtropolis Social Forum
    • New Members Information
    • Simtropolis Related
    • General Off-Topic
    • Current Events
    • Architecture & Urban Planning
  • Gamer Topics
    • SimCity 3000
    • City-Building Games
    • Gaming Talk
  • Challenges Forum
    • SC4 Challenges - Info and Discussion
  • Trixies Forum
    • Trixie Awards - Community Discussion
  • Club-owners Club's Club Discussion
  • Simtropolis en Español's Plaza Mayor
  • Simtropolis en Español's Soporte Técnico
  • Simtropolis en Español's Parque Industrial
  • SimCampus Students's Topics
  • The Transit and Aviation Geeks Club's Topics
  • Arden County City Council's Topics
  • Alliance of Independent Nations on Simtropolis's Discussion
  • The Major Club's Topics
  • Project Rich Water's Topics
  • Furry Community's Topics
  • Simtropolis Italia's Discussioni
  • New Washington's Topics
  • Everything about details's Topics
  • CityBuildingMasters X's Topics
  • City Journal Club's Topics
  • City Journal Club's Photo Shopping, Type Faces, Page Layout !
  • City Journal Club's Writing
  • Coolio Club For Cool Children's Topics
  • Atlantic Energy Co.'s Topics
  • Micropolis's Topics
  • City-Builders Website's Club Topics
  • SimCity Polska Organization's Topics
  • Simtropolis em português's Topics
  • Simtropolis em português's Fórum
  • My Little Pony Club's Topics
  • SimCity 2000 Resource Club's Topics
  • Simtropolis中文's Topics
  • Simtropolis en français's Topics
  • NewCity's Topics
  • Simtropolis Historical/Aesthetically Accurate Topography Society's Topics
  • Southeast Asian Mayors's Topics
  • Simtropolis Historical/Aesthetically Accurate Topography Society's Request Maps
  • Simtropolis Historical/Aesthetically Accurate Topography Society's Social and Events
  • Simtropolis Historical/Aesthetically Accurate Topography Society's Mapping
  • SimCity 3000 Resource Club's Information
  • The Great British Simtropolis Club's Topics
  • Roller Coaster Park Builders's Topics
  • Banished's Topics
  • Banished's Modding
  • Banished's Questions
  • Banished's Stories
  • Android City Builders & Other Games's Topics
  • City-Builders Website's Banished Toolkit
  • City-Builders Website's Banished Villages
  • City-Builders Website's Banished Achievements
  • Spooky Souls Building's Topics
  • TheoTown's Topics
  • Found Custom Contents's Topics
  • Cities in Motion's Topics
  • SimCity 3000 Resource Club's SC3000 Ordinances
  • SimCity Societies + Destinations's Topics

Categories

  • SimCity 4
    • SC4 Reference
    • SC4 Tutorials
    • BAT & Lot Editor Tutorials
    • Modding Information
    • Mapping & Terraforming
  • Other Games
  • Simtropolis Articles
    • Interviews

Categories

  • News
  • News
  • News

Categories

  • SimCity 4 Files
    • Residential
    • Commercial
    • Industrial
    • Agricultural
    • Building Sets
    • Civic & Non-RCI
    • Utilities
    • Parks & Plazas
    • Waterfront
    • Transportation
    • Automata
    • Gameplay Mods
    • Graphical Mods
    • DLL Mods
    • Cheats
    • Tools
    • Maps
    • Ready Made Regions
    • Dependencies
    • 3ds Models
    • Obsolete & Legacy
    • Reference & Info
  • SimPeg (PLEX) Files
    • PLEX Custom Lots & Mods
    • CDK - Coastal Development Kit
    • MTP - Mountain Theme Pack
    • SPAM - SimPeg Agricultural Mods
    • PEG Utopian Series
  • SimCityBrasil Files
  • SimCityPolska Files
  • WorkingMan Productions (WMP)
  • Cities: Skylines II Mods
  • Cities: Skylines Buildings
    • CSL Maps
    • CSL Roads & Traffic
    • CSL Vehicle Assets
    • CSL Game Mods
    • CSL Props
    • CSL Programs & Tools
  • SimCity (2013) Buildings
    • SC13 Game Mods
    • SC13 Roads & Traffic
    • SC13 Vehicles
    • SC13 Programs & Tools
    • SC13 User Interface
  • SimCity 3000 Files
    • SC3K Maxis Files
    • SC3K Cities & Maps
  • CitiesXL Buildings
    • CXL Mods & Tools
    • CXL Maps
    • CXL Textures & Props
    • CXL Lots
    • CXL 3d Models
  • Simtropolis en Español's Descargas
  • Club-owners Club's Dirk's Files
  • The Major Club's Files
  • Project Rich Water's Files
  • Furry Community's Files
  • Simtropolis Italia's Archivio
  • New Washington's Files
  • Everything about details's Files
  • CityBuildingMasters X's Files
  • City Journal Club's Files
  • Coolio Club For Cool Children's Files
  • Atlantic Energy Co.'s Files
  • Micropolis's Files
  • City-Builders Website's CB Files
  • SimCity Polska Organization's Files
  • Simtropolis em português's Descargas
  • My Little Pony Club's Files
  • SimCity 2000 Resource Club's SCURK Tilesets
  • SimCity 2000 Resource Club's CITY Files
  • SimCity 2000 Resource Club's Multi Object Tilesets
  • SimCity 2000 Resource Club's Single Object Tilesets
  • Simtropolis中文's Files
  • Simtropolis en français's Files
  • NewCity's Files
  • Simtropolis Historical/Aesthetically Accurate Topography Society's Files
  • Southeast Asian Mayors's Files
  • SimCity 3000 Resource Club's SimCity 3000 Starter Towns
  • SimCity 3000 Resource Club's SimCity 3000 Cities
  • SimCity 3000 Resource Club's SimCity 3000 Terrains
  • The Great British Simtropolis Club's Files
  • Roller Coaster Park Builders's Files
  • Banished's Banished Mods
  • Banished's Kid's Mods
  • Android City Builders & Other Games's Files
  • City-Builders Website's Banished Save Games
  • Banished's Modding Files
  • SimCity 2000 Resource Club's MAC Files
  • Spooky Souls Building's Files
  • TheoTown's Files
  • Found Custom Contents's Chinese Sites
  • Found Custom Contents's European Sites
  • Found Custom Contents's Japanese Sites
  • Found Custom Contents's North America Sites
  • Found Custom Contents's Asia-Pacific Sites
  • Cities in Motion's CiM Maps
  • Cities in Motion's CiM Mods
  • SimCity Societies + Destinations's Files

City Journals

There are no results to display.

There are no results to display.

Calendars

  • Alliance of Independent Nations on Simtropolis's Alliance Calendar
  • Club-owners Club's Events
  • SimCampus Students's Events
  • SimCampus Students's Noggin Thinkers Dates
  • Arden County City Council's Events
  • The Major Club's Events
  • Project Rich Water's Events
  • Furry Community's Events
  • Simtropolis Italia's Eventi
  • New Washington's Events
  • Everything about details's Events
  • CityBuildingMasters X's Events
  • City Journal Club's Events
  • Coolio Club For Cool Children's Events
  • Atlantic Energy Co.'s Events
  • Micropolis's Events
  • SimCity Polska Organization's Events
  • My Little Pony Club's Events
  • Simtropolis中文's Events
  • Simtropolis en français's Events
  • Simtropolis Historical/Aesthetically Accurate Topography Society's Events
  • Southeast Asian Mayors's Events
  • The Great British Simtropolis Club's Events
  • Roller Coaster Park Builders's Events
  • Android City Builders & Other Games's Events
  • Spooky Souls Building's Events
  • TheoTown's Events
  • Cities in Motion's Events

City-building game(s)

Found 3 results

  1. dbpf-grep is a basic command-line search tool for TGIs in DBPF files. It's decently fast, so you can use it to search for specific TGIs in a large Plugins folder very quickly. I also use it for getting a quick overview of files, for debugging load order problems, for writing sc4pac metadata, and for dealing with the NAM and its many files. I've also had plans to expand the functionality by a few other useful commands, but so far they haven't materialized, so I decided to release it as is for now.
  2. I figured out how to parse some values out of the SimCity 4.cfg file, and I figured I'd post my findings here since I haven't seen this done before. Besides the directory subfile, the SimCity 4.cfg contains only one other (compressed) subfile with the type ID of a9dd6e06. This contains the last viewed region, last played city, and last used mayor name. The subfile itself appears to be filled with zeroes, with each of these values found at specific offsets. I'm sure graphical settings and such are encoded in this subfile too, but I haven't figured out how to parse those yet. The last city name can be found at offset 110 (0x06E) The last mayor name is at offset 622 (0x26E) And the last region name is at offset 3774 (0xEBE) All three of these values are null-terminated strings. So you read the string until you read 0x00, then terminate the string. These offsets should be correct if my DBPF decompression function is not broken, which it maybe potentially could be. The purpose of this is for the SimCity 4 multiplayer launcher, so it can automatically switch between region maps depending on what's found in the SimCity 4.cfg file. The code for this project is at https://github.com/kegsmr/sc4mp-client/. And here's my function to read these values from the CFG file (it can be found on the feature branch in core/dbpf.py): def get_simcity_4_cfg(self): data = self.decompress_subfile("a9dd6e06") self.simcity_4_cfg = {} data.seek(110) # 0x06E self.simcity_4_cfg["LastCityName"] = self.read_nullstring(data) data.seek(622) # 0x26E self.simcity_4_cfg["LastMayorName"] = self.read_nullstring(data) data.seek(3774) # 0xEBE self.simcity_4_cfg["LastRegionName"] = self.read_nullstring(data) return self.simcity_4_cfg
  3. Nothing major, just throwing a fun fact out here. I've been looking at savegame-related stuff lately and found a weird quirk in how SC4 loads data. Almost every modder already knows that most game data (plugins, .dat files, savegames) is packaged as DBPF files. Here's what the SC4Devotion wiki has to say about them: This actually isn't true! For some absolutely insane reason, if a file doesn't start with "DBPF," the game will still scan through the entire file and try to load it by looking for this byte sequence: 80 9D 88 EC 8F 24 03 6C C9 A6 31 56 5B CF 77 22 If the game finds these magic bytes it'll try to load any data from that point on as a DBPF. This lets you do weird things like combine .dat and .jpg files. If you want an example, download the demo.jpg file I attached to this post and put it in your plugins folder. If it worked, you'll see this hastily made icon in your parks menu: Now as a novelty I think this is pretty funny, but I can't think of a practical reason for why anyone would do this. Here's what I think this could mean for modding though: it's a pretty solid confirmation that the game will waste time on non-game files like JPEGs that get stuck in plugin folders. This is inefficient since the game is forcing itself to fully scan every file in the Plugins folder for this kind of data. But it's possible to patch out this check so that the game only looks for the "DBPF" sequence at the start, and bails out early if it's not there. This could meaningfully improve load times for people with large plugin folders that still have JPGs, ZIP files and other non-game data in them. But since spinning hard drives are going out of style, this might not offer much improvement either. Anyway, here's the demo file I mentioned earlier: demo.jpg
×

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