Page 1 of 1

Cantr Item List Formatter

Posted: Sun Nov 23, 2008 8:20 am
by joo
Sometimes a character needs to make a list of items, such as a manifest of goods, or a list of items for trade to be given to potential trading partners. When there are a lot of items, the standard method is to copy and paste from the objects page - however a lot of returns, spaces and other whitespace characters get copied along with the item list, often requiring additional formatting by hand or by find and replace in notepad.

So to speed up the process of formatting a list of items, I wrote up a few scripts to format and sort lists of objects and merge redundant stacks of items (for example, of you were making a list of all resources in a town, you would need to copy and paste from multiple buildings, and there might be duplicate resource names).

I though this might be useful to other players of Cantr, so I added a GUI to it and embedded it in a web page as a Shockwave object. (If you don't have the Adobe Shockwave Player you can download it here). Anyway, I haven't tested it a lot so there might be one or two bugs with the interface - if you find any, please PM me.

http://joo.freehostia.com/cantr/itemlist/

Posted: Sun Nov 23, 2008 8:31 am
by DylPickle
That's awesome Joo. Can't wait to try it out. This'll make life so much easier when I play my managers.

Posted: Sun Nov 23, 2008 3:26 pm
by BarbaricAvatar
Hey that's brilliant, it works a treat. Image

Posted: Sun Nov 23, 2008 7:52 pm
by CantrFreak
This is great!

Now all we need is something that works out how much an amount of a resource (or resources) is worth in DOW.

Posted: Mon Nov 24, 2008 3:04 am
by joo
CantrFreak wrote:This is great!

Now all we need is something that works out how much an amount of a resource (or resources) is worth in DOW.

That might indeed be possible, if the data that is used for Cantr2Projects was used... I shall think about it.

Posted: Mon Nov 24, 2008 2:25 pm
by Doug R.
Thanks Joo!

Posted: Sun Jan 18, 2009 1:22 am
by SekoETC
Otherwise a great thing except when I paste the copied list to Notepad, the line endings are displayed as a box instead of an actual line ending. Could you include some Notepad-compatible line endings option? It seems to work okay in WordPad and if I copy from WordPad to Notepad then that fixes the boxes, but I wouldn't like having to do that every time.

Posted: Sun Jan 18, 2009 2:06 am
by joo
Ah, yes, I should have used a CRLF instead of just a carriage return.

Clear your cache, and it should work now.

Posted: Mon Jan 26, 2009 3:22 pm
by *Wiro
Awesome, much easier like this. :) Thanks.

Posted: Fri Jun 12, 2009 1:37 pm
by *Wiro
omg. Why is it down? Q_Q

Posted: Fri Jun 12, 2009 1:56 pm
by El_Skwidd
joo, you are a Cantr wizard. 8)

Posted: Fri Jun 12, 2009 6:22 pm
by joo
It's not down for me, but maybe the Freehostia servers went down temporarily.

I should rewrite this in Javascript some time...

Posted: Sat Jun 13, 2009 8:35 pm
by BlueNine
This is the exact thing I was thinking I should learn some programming to be able to make (was going for a java app)...thanks for doing it for me!, but also curse you for enabling me to go on without learning it!