Ludeon Forums

RimWorld => Releases => Mods => Outdated => Topic started by: pawnstorm on May 01, 2014, 04:42:33 PM

Title: [MOD] (Alpha 3F) Architect+ (v1.0)
Post by: pawnstorm on May 01, 2014, 04:42:33 PM
Architect+

Description:
Adds pages to the architect menus and shows a fixed amount of items per page.
You can browse through the pages by clicking the buttons in the architect menu.

Download:
The download link is at the bottom of this post or here (http://ludeon.com/forums/index.php?action=dlattach;topic=3410.0;attach=2246).

How to install:
- Unzip the contents and place them in your RimWorld/Mods folder.
- Activate the mod in the mod menu in game.

Notes:
- Click on "Architect+" to open up the settings dialog.

Changelog:
0.1- Released
0.5- Some fixes and added small icons
0.6- Added a sort option
0.9- Changed name to Architect+ and added a settings menu
1.0- Tweaked the menu a bit and changed auto icon behaviour a little

[attachment deleted by admin: too old]
Title: Re: [MOD] (Alpha 3F) PagedArchitect (v0.1)
Post by: jamieg on May 01, 2014, 04:45:52 PM
Perfect for the BIG Bang!! I appreciate you doing this!!
Title: Re: [MOD] (Alpha 3F) PagedArchitect (v0.1)
Post by: pawnstorm on May 01, 2014, 04:47:44 PM
Quote from: jamieg on May 01, 2014, 04:45:52 PM
Perfect for the BIG Bang!! I appreciate you doing this!!
I already tested it briefly on the big bang with all mods activated, seems to work just fine :).
Title: Re: [MOD] (Alpha 3F) PagedArchitect (v0.1)
Post by: jamieg on May 01, 2014, 04:50:18 PM
Im loading up now :) if its fine Ill probs upload an update tomoz at some point!! SO HAPPY RIGHT NOW, and im sure alot of people will be too ;)
Title: Re: [MOD] (Alpha 3F) PagedArchitect (v0.1)
Post by: jamieg on May 01, 2014, 04:55:11 PM
I cant get it working? it didnt take the usual long time to load the map, instead black screened with crazy unity console error log
Title: Re: [MOD] (Alpha 3F) PagedArchitect (v0.1)
Post by: Architect on May 01, 2014, 04:56:05 PM
pawnstorm, any time you wanna stop making the rest of us look like amateurs is cool by me... XD I kid, you're doing some amazing stuff with the game, don't be away too long :D
Title: Re: [MOD] (Alpha 3F) PagedArchitect (v0.1)
Post by: pawnstorm on May 01, 2014, 04:57:47 PM
Quote from: jamieg on May 01, 2014, 04:55:11 PM
I cant get it working? it didnt take the usual long time to load the map, instead black screened with crazy unity console error log
Hmm, curious, what did it say? Are you using the same big bang release as on your forum thread? Maybe you could try disabling the other mods and if that works, enable some until it fails again.
Title: Re: [MOD] (Alpha 3F) PagedArchitect (v0.1)
Post by: jamieg on May 01, 2014, 04:59:33 PM
Yeah Im gunna have a play around with it :) hopefully get it working by tomoz but I have faith in you!!
Title: Re: [MOD] (Alpha 3F) PagedArchitect (v0.1)
Post by: pawnstorm on May 01, 2014, 05:06:15 PM
Quote from: Architect on May 01, 2014, 04:56:05 PM
pawnstorm, any time you wanna stop making the rest of us look like amateurs is cool by me... XD I kid, you're doing some amazing stuff with the game, don't be away too long :D
Thanks for the compliment! I'm just a humble shoeshiner though, the credit should go to Tynan for making his game so accessible for modders :). And also one of the nicest examples of object oriented programming I've come across. Personally I don't really like c# though, if it was up to me, we'd all still be doing structured programming. But I recognise art when I see it ^^
Title: Re: [MOD] (Alpha 3F) PagedArchitect (v0.1)
Post by: Architect on May 01, 2014, 05:17:34 PM
C# is all I've even known XD Well, that and python... What do you mean by structured programming?
Title: Re: [MOD] (Alpha 3F) PagedArchitect (v0.1)
Post by: pawnstorm on May 01, 2014, 05:22:16 PM
Quote from: Architect on May 01, 2014, 05:17:34 PM
C# is all I've even known XD Well, that and python... What do you mean by structured programming?
Ah, the last game I extensively modded has a python modding system :P. Structured programming used to be the status quo until object oriented programming became the new black. "Old" languages like C are primarily focussed on it.
Title: Re: [MOD] (Alpha 3F) PagedArchitect (v0.1)
Post by: Vas on May 01, 2014, 05:31:35 PM
This is nice, but it won't help if the architect isn't improved.  It just means that much more clicking around and hunting.  We need a search feature, and the ability to hide things from view that we don't intend to ever build, and the ability to make it into a word list rather than a huge icon list, the word list would just have smaller icons next to each name.  Icons about the size of the text height.
Title: Re: [MOD] (Alpha 3F) PagedArchitect (v0.1)
Post by: Tynan on May 01, 2014, 05:34:53 PM
Quote from: Vas on May 01, 2014, 05:31:35 PM
This is nice, but it won't help if the architect isn't improved.  It just means that much more clicking around and hunting.  We need a search feature, and the ability to hide things from view that we don't intend to ever build, and the ability to make it into a word list rather than a huge icon list, the word list would just have smaller icons next to each name.  Icons about the size of the text height.

Yes, the menu is being stressed by being asked to carry far more than it was designed for. I've made some improvements for A4 which should help things (especially modder-defined categories so you can make your own category).

Paging is a great idea though, I should've thought of this!
Title: Re: [MOD] (Alpha 3F) PagedArchitect (v0.1)
Post by: Architect on May 01, 2014, 06:14:11 PM
Quote from: pawnstorm on May 01, 2014, 05:22:16 PM
Quote from: Architect on May 01, 2014, 05:17:34 PM
C# is all I've even known XD Well, that and python... What do you mean by structured programming?
Ah, the last game I extensively modded has a python modding system :P. Structured programming used to be the status quo until object oriented programming became the new black. "Old" languages like C are primarily focussed on it.

So had did people access individual instances data if nothing was object orientated?
Title: Re: [MOD] (Alpha 3F) PagedArchitect (v0.1)
Post by: mrofa on May 01, 2014, 06:17:52 PM
pawnstorm could you just make a normal list like window insted of icons?
Title: Re: [MOD] (Alpha 3F) PagedArchitect (v0.1)
Post by: pawnstorm on May 01, 2014, 06:35:16 PM
Quote from: mrofa on May 01, 2014, 06:17:52 PM
pawnstorm could you just make a normal list like window insted of icons?
Technically I probably could, just as an infinite number of monkeys would eventually be able to produce Hamlet given infinite time. But it would be more work than I'm prepared to put in this. GUI manipulation is pretty hard at the moment, one of the reasons I made this is because I spotted an easy fix for this by splitting the array of items into smaller chunks when it gets passed to some function that draws and processes it. For alpha 3, I think this is as good as it gets for large modpacks.
Title: Re: [MOD] (Alpha 3F) PagedArchitect (v0.1)
Post by: mrofa on May 01, 2014, 06:50:42 PM
It was worth a try :D
So you say i only need a infinite numbers of monkeys in time loop hmm that can be done :D
Title: Re: [MOD] (Alpha 3F) PagedArchitect (v0.1)
Post by: pawnstorm on May 01, 2014, 06:52:09 PM
Quote from: jamieg on May 01, 2014, 04:55:11 PM
black screened with crazy unity console error log
So, did anyone else experience this? I'd much appreciate some feedback on this. I do remember at one point during testing, I also got a black screen because I had made a copy of my Mod directory without the txt file (which most likely didn't cause it) and ThingCategories.xml file in it.
Title: Re: [MOD] (Alpha 3F) PagedArchitect (v0.1)
Post by: WorldOfIllusion on May 01, 2014, 08:20:18 PM
Quote from: pawnstorm on May 01, 2014, 05:22:16 PM
Quote from: Architect on May 01, 2014, 05:17:34 PM
C# is all I've even known XD Well, that and python... What do you mean by structured programming?
Ah, the last game I extensively modded has a python modding system :P. Structured programming used to be the status quo until object oriented programming became the new black. "Old" languages like C are primarily focussed on it.

Wait, you actually LIKE C? But, but, all the management of memory and the eventual stack overflow errors and pointers and malloc'ing and and. C makes you do so much that the nice higher level object oriented languages will just do for you!
Title: Re: [MOD] (Alpha 3F) PagedArchitect (v0.1)
Post by: StorymasterQ on May 01, 2014, 11:22:42 PM
Quote from: Tynan on May 01, 2014, 05:34:53 PM
Quote from: Vas on May 01, 2014, 05:31:35 PM
This is nice, but it won't help if the architect isn't improved.  It just means that much more clicking around and hunting.  We need a search feature, and the ability to hide things from view that we don't intend to ever build, and the ability to make it into a word list rather than a huge icon list, the word list would just have smaller icons next to each name.  Icons about the size of the text height.

Yes, the menu is being stressed by being asked to carry far more than it was designed for. I've made some improvements for A4 which should help things (especially modder-defined categories so you can make your own category).

Paging is a great idea though, I should've thought of this!

Having an alphabetized list could also help. There could even an option such as
Order items with:
[X] Alphabetized
[  ] Researched
[  ] Magic (read: unordered)
Title: Re: [MOD] (Alpha 3F) PagedArchitect (v0.1)
Post by: pawnstorm on May 02, 2014, 03:00:22 AM
Quote from: StorymasterQ on May 01, 2014, 11:22:42 PM
Quote from: Tynan on May 01, 2014, 05:34:53 PM
Quote from: Vas on May 01, 2014, 05:31:35 PM
This is nice, but it won't help if the architect isn't improved.  It just means that much more clicking around and hunting.  We need a search feature, and the ability to hide things from view that we don't intend to ever build, and the ability to make it into a word list rather than a huge icon list, the word list would just have smaller icons next to each name.  Icons about the size of the text height.

Yes, the menu is being stressed by being asked to carry far more than it was designed for. I've made some improvements for A4 which should help things (especially modder-defined categories so you can make your own category).

Paging is a great idea though, I should've thought of this!

Having an alphabetized list could also help. There could even an option such as
Order items with:
[X] Alphabetized
[  ] Researched
[  ] Magic (read: unordered)
Nice idea! I could try to add some buttons to the architect info panel (above the tab buttons) when no item is selected where you can set how to sort the list and how many max items you want on a page. In fact, I could probably also add some toggles to hide items that meet a certain criteria.
Title: Re: [MOD] (Alpha 3F) PagedArchitect (v0.5)
Post by: pawnstorm on May 03, 2014, 10:53:14 AM
Updated first post with new version.
Title: Re: [MOD] (Alpha 3F) PagedArchitect (v0.1)
Post by: rutefly on May 03, 2014, 12:37:17 PM
Quote from: Architect on May 01, 2014, 06:14:11 PM
Quote from: pawnstorm on May 01, 2014, 05:22:16 PM
Quote from: Architect on May 01, 2014, 05:17:34 PM
C# is all I've even known XD Well, that and python... What do you mean by structured programming?
Ah, the last game I extensively modded has a python modding system :P. Structured programming used to be the status quo until object oriented programming became the new black. "Old" languages like C are primarily focussed on it.

So had did people access individual instances data if nothing was object orientated?

Inlined assembly code i think. Varied with the compiler that was being used.
It was/is messy in most cases.
Title: Re: [MOD] (Alpha 3F) PagedArchitect (v0.6)
Post by: pawnstorm on May 03, 2014, 03:34:12 PM
Added sort checkbox in v0.6
Title: Re: [MOD] (Alpha 3F) PagedArchitect (v0.6)
Post by: Cala13er on May 03, 2014, 05:33:54 PM
Quote from: pawnstorm on May 03, 2014, 03:34:12 PM
Added sort checkbox in v0.6

Can you make a v0.6 version that doesn't re-size depending on resolution and fitting in 4 lines.
Title: Re: [MOD] (Alpha 3F) PagedArchitect (v0.6)
Post by: pawnstorm on May 04, 2014, 02:03:06 AM
Quote from: Cala13er on May 03, 2014, 05:33:54 PM
Quote from: pawnstorm on May 03, 2014, 03:34:12 PM
Added sort checkbox in v0.6

Can you make a v0.6 version that doesn't re-size depending on resolution and fitting in 4 lines.
What do you mean by re-size on resolution? Do you mean so it always shows the small icons? I don't have much time to work on it now, since I'll be away until tuesday in a couple of hours and I still need to fold my laundry and pack. But if that's what you mean, see attached file.

The default version doesn't resize on resolution change, when it draws a page first it checks if it can fit all remaining items in max 2 rows of default size items, if not it tries to display them in 4 rows of small items.

Edit: Oh crap, I left the text search box I was working on in there, which isn't finished yet... gimme a minute, I'll do a new recompile

[attachment deleted by admin: too old]
Title: Re: [MOD] (Alpha 3F) PagedArchitect (v0.6)
Post by: Celthric Aysen on May 04, 2014, 02:13:26 AM
I need another Pistol!
someone shoot me in the head! this is too awesome!
Title: Re: [MOD] (Alpha 3F) PagedArchitect (v0.6)
Post by: Cala13er on May 04, 2014, 03:44:54 AM
Quote from: pawnstorm on May 04, 2014, 02:03:06 AM
Quote from: Cala13er on May 03, 2014, 05:33:54 PM
Quote from: pawnstorm on May 03, 2014, 03:34:12 PM
Added sort checkbox in v0.6

Can you make a v0.6 version that doesn't re-size depending on resolution and fitting in 4 lines.
What do you mean by re-size on resolution? Do you mean so it always shows the small icons? I don't have much time to work on it now, since I'll be away until tuesday in a couple of hours and I still need to fold my laundry and pack. But if that's what you mean, see attached file.

The default version doesn't resize on resolution change, when it draws a page first it checks if it can fit all remaining items in max 2 rows of default size items, if not it tries to display them in 4 rows of small items.

Edit: Oh crap, I left the text search box I was working on in there, which isn't finished yet... gimme a minute, I'll do a new recompile

Yeah, but the small icons are horrible. I'm not to keen on that part but the rest of the mod is brilliant! And thanks for the custom build.
Title: Re: [MOD] (Alpha 3F) PagedArchitect (v0.1)
Post by: pawnstorm on May 04, 2014, 04:21:38 AM
Quote from: rutefly on May 03, 2014, 12:37:17 PM
Quote from: Architect on May 01, 2014, 06:14:11 PM
Quote from: pawnstorm on May 01, 2014, 05:22:16 PM
Quote from: Architect on May 01, 2014, 05:17:34 PM
C# is all I've even known XD Well, that and python... What do you mean by structured programming?
Ah, the last game I extensively modded has a python modding system :P. Structured programming used to be the status quo until object oriented programming became the new black. "Old" languages like C are primarily focussed on it.

So had did people access individual instances data if nothing was object orientated?

Inlined assembly code i think. Varied with the compiler that was being used.
It was/is messy in most cases.
There are no instances. If, say, you're making a game and want to add things that have data structures, you'd just create structs for them. And then put them into an array if you want more of those things.
If you compare the old win32 api with the dotnet framework it should give you a decent grasp of the differences. Structured code just has an entrypoint (main or winmain) and everything just happens from there. The exposed win32 api consists of just function calls, whereas the dotnet framework has all kinds of classes you can create instances of and manipulate.
Inline assembly is mainly used for optimizing code for a specific architecture, mostly things like floating point operations or fancy GPU stuff. There isn't really anything you can't do in C that you can do with inline assembly, but in some cases it helps to yield some extra performance if you can do better than the compiler.
Title: Re: [MOD] (Alpha 3F) PagedArchitect (v0.6)
Post by: Cala13er on May 04, 2014, 08:07:26 AM
Just tried the custom build, I meant could you stop it resizing the icons to small? And also make it so only 36 icons appear each page max. Thanks :)
Title: Re: [MOD] (Alpha 3F) PagedArchitect (v0.6)
Post by: pawnstorm on May 04, 2014, 09:53:50 AM
Yeah I get it now, I'll do some more tweaking when I get back home on tuesday. Right now I'm stuck babysitting 2 cats and a dachshund :P. Why 36 though? The number of items that fit in a row is different between resolutions, wouldn't it be better to just fill a certain number of rows max?

How about I
- replace the sort checkbox with a search textfield
- make the small icons slightly less small and change the font to something without antialiasing
- create a new dialog in the place of the item info dialog when no tab is selected, where you can set per tab whether you want them sorted, want small or normal icons and the maximum amount of vertical screen real estate in pixels it's allowed to use per page
- find some way for the game to save these settings

Will that make everybody happy? :P
Title: Re: [MOD] (Alpha 3F) PagedArchitect (v0.6)
Post by: CyborgDragon on May 04, 2014, 12:36:02 PM
Could you also fix it so hotkeys still work in the small menus? That's my biggest issue I have with the small menus. I often right click and hit x to cancel or c to deconstruct something, but when the last menu I opened was one of the small ones, it doesn't work.
Title: Re: [MOD] (Alpha 3F) PagedArchitect (v0.6)
Post by: joeyeti on May 04, 2014, 02:35:04 PM
Can haz pictrz? Hmmm?
Title: Re: [MOD] (Alpha 3F) PagedArchitect (v0.6)
Post by: Hari Seldon on May 05, 2014, 07:47:59 AM
Hey there, would I be able to include your mod in my own if I ever get around to releasing it. I'm making some new floors, eventually new walls and furniture too. Problem is, there's too much for the vanilla ui to handle.

I sent a pm 2 days back but I'm wary of how many people actually look at their inbox. So here I am.
Title: Re: [MOD] (Alpha 3F) PagedArchitect (v0.6)
Post by: pawnstorm on May 05, 2014, 08:10:10 AM
Quote from: Hari Seldon on May 05, 2014, 07:47:59 AM
Hey there, would I be able to include your mod in my own if I ever get around to releasing it. I'm making some new floors, eventually new walls and furniture too. Problem is, there's too much for the vanilla ui to handle.

I sent a pm 2 days back but I'm wary of how many people actually look at their inbox. So here I am.
I do check my PMs regularly but it seems I completely overlooked yours. Maybe someone else sent me a pm too around that time and I forgot to look at yours, either that or I must've been boozed out of my skull :P.
Anyway, feel free to include my mod in yours.
Title: Re: [MOD] (Alpha 3F) PagedArchitect (v0.6)
Post by: Hari Seldon on May 05, 2014, 08:15:50 AM
Much obliged.
Title: Re: [MOD] (Alpha 3F) PagedArchitect (v0.6)
Post by: pawnstorm on May 07, 2014, 05:09:52 PM
Quote from: CyborgDragon on May 04, 2014, 12:36:02 PM
Could you also fix it so hotkeys still work in the small menus?
Will be fixed in the next release.

Also, I think I'm dropping the search feature, unless someone has any idea how I can make it work properly. The problem is mainly focus related, if I put a textfield in the architect menu it automatically grabs focus and absorbs all item hotkeys. I suppose I could make a button to show the textfield and just remove the hotkeys in search mode, but it doesn't absorb game controls like moving the camera.
Title: Re: [MOD] (Alpha 3F) Architect+ (v0.9)
Post by: pawnstorm on May 08, 2014, 05:44:02 PM
So, any comments on the version I released earlier today? Any important features still missing? Does the settings dialog look ok?
Title: Re: [MOD] (Alpha 3F) Architect+ (v0.9)
Post by: Hari Seldon on May 08, 2014, 06:08:03 PM
I tested it a bit today, icons are much better sized now, haven't really messed with the various settings.
Title: Re: [MOD] (Alpha 3F) Architect+ (v0.9)
Post by: dannyepsin on May 10, 2014, 05:34:54 AM
this mod allows me to have loads at 1 time. thank you for such a great mod pawn.
Title: Re: [MOD] (Alpha 3F) Architect+ (v1.0)
Post by: pawnstorm on May 12, 2014, 01:34:42 PM
Released another new version. I think this will be the last update for a while, I'm pretty happy with it now.
Title: Re: [MOD] (Alpha 3F) Architect+ (v1.0)
Post by: minami26 on May 12, 2014, 02:03:55 PM
pure awesome work pawnstorm!!