As soon as I learned that the save files are text based and wide open to editing I started writing a parser for it.
What I want to do is represent the content of the file as proper objects. Having that, it will be easy to write reusable LINQ queries and expressions against everything stored there. This will make it easy to create a tool with one-click-to-fix buttons, for example for getting stuck prisoners unstuck. The pipe dream is obviously a full blown map editor.
It can currently only parse cells (not the room Cell but the tiles/squares on the map). All other lines are simply echoed. I'll continue when I get home, now I need to write some code that I'm paid to write.
Any .Net coders out there?
http://pastebin.com/g6CDDDtL
- Board index Games Prison Architect Prison Architect Community Members
- Search
-
- It is currently Fri Jan 22, 2021 10:56 pm
- All times are UTC+01:00
[Code] Prison Architect LINQ
(previously 'DEVELOPER') Private forum for registered community members. To register, please visit www.prison-architect.com/register.
Moderator: NBJeff
Jump to
- Introversion
- Introversion News
- Introversion Lounge
- Introversion Blog
- Games
- Scanner Sombre
- Prison Architect
- Prison Architect
- General
- Community Members
- Campaign
- Escape Mode
- Modding
- Tablet Testing
- Introversion
- Subversion
- Multiwinia
- Multiwinia
- General
- Gameplay Discussion
- Strategy and Tactics
- Mods and Maps
- The Future
- Introversion
- Support
- Windows Troubleshooting
- Defcon
- Defcon
- General
- Strategic Air Command
- The Debriefing Room
- Mod Projects
- Think Tank
- AI Bots
- DEFCON VR
- Introversion
- Support
- Windows Troubleshooting
- Linux Troubleshooting
- Darwinia
- Darwinia
- General
- Mod Projects
- Introversion
- Technical Support
- Windows Issues
- Mac Issues
- Linux Issues
- Translation Issues
- Uplink
- Uplink
- General
- Latest Patch
- Hints and Tips
- The Full Game
- The Future
- Uplink in Moderation
- Introversion
- Nakatomi
- Bug Reports
- The Bonus Disk
- The Latest Patch
- Mac Uplink
Who is online
Users browsing this forum: No registered users and 3 guests