The Castle Doctrine Forums

Discuss the massively-multiplayer home defense game.

You are not logged in.

#101 2013-05-17 15:47:53

segarch
Member
Registered: 2013-04-06
Posts: 59

Re: CastleFortify: Save and share your designs

Version 0.2 of Castle Fortify released! 

In this version I've added the Native Castle Doctrine format to the code section.  Very excited about this release, because the goal from day one has been making the transition between CastleFortify and Castle Doctrine (And any other custom apps) as seamless as possible, and supporting the native Castle Doctrine format is a huge step in that domain. Superusers who once had to convert between CastleDoctrine to CastleFortify can now cut and paste!

Thanks so much to @Zegnat, for suggesting this feature and @Zegnat @dalleck @mjbarker for helping me navigate the tricky technical terrain! And thanks to everyone who's currently using CastleFortify to share designs - keep those suggestions coming!

Post any issues on the forum or (if you wanna be all geek about it) here: https://github.com/SethArchambault/CastleFortify/issues

Last edited by segarch (2013-05-17 15:49:48)


Share castle designs: http://castlefortify.com
Let me know about any Castle Fortify issues here: https://github.com/SethArchambault/CastleFortify/issues
Contributing is easy!  Check the readme: https://github.com/SethArchambault/CastleFortify
Twitter: @SethArchambault

Offline

#102 2013-05-17 22:26:30

dalleck
Member
Registered: 2013-04-13
Posts: 250

Re: CastleFortify: Save and share your designs

Great work segarch!  Imports flawlessly now.


The rich aren't safe. Nobody is safe. -jere                   ...but the smell wafts out from the pit, obviously. - Jason Rohrer

And the more dickish they are, the more I feel like beating a house to destruction after finally figuring it out. -bey bey

Offline

#103 2013-05-18 02:43:31

Matrix
Member
Registered: 2013-04-06
Posts: 137

Re: CastleFortify: Save and share your designs

segarch wrote:
Dinnanid wrote:

I think that you should make the grey section tile or whatever you call it partially transparent so you can still see what tile you are over.

Yeah that would definitely be a valuable addition.. At some point I'm going to have to redo the whole display process.  Since I'm using basic html Div tags instead of html5 console, I'm very limited on how to display elements.  As things progress, we'll get there.

You can still do this with a really small change to your style definitions. Works on all decent browsers... so yeah that might exclude IE 7/8, but since your page is written with modern browsers in mind, I don't think that's an issue at all wink

Change this rule

.square:hover {
    background: #333;
}

to (don't forget the :after part)

.square:hover:after {
    background: #333;     
    opacity: 0.7;          // <-- tweak the opacity value to your liking
    content: "";
    display: block;
    height: 28px;
    width: 28px;
}

A solution that works in all browsers would require you to clutter the HTML markup with extra empty divs inside every div.square and then applying a similar CSS rule (without the :after and content: "" part) to those empty divs.

Last edited by Matrix (2013-05-18 03:11:54)

Offline

#104 2013-05-18 07:37:17

segarch
Member
Registered: 2013-04-06
Posts: 59

Re: CastleFortify: Save and share your designs

dalleck wrote:

Great work segarch!  Imports flawlessly now.

Awesome!

Matrix wrote:

You can still do this with a really small change to your style definitions. Works on all decent browsers... so yeah that might exclude IE 7/8, but since your page is written with modern browsers in mind, I don't think that's an issue at all wink

Sweet! Thanks for doing the legwork on this one!  I'll test it out and get it up soon.


Share castle designs: http://castlefortify.com
Let me know about any Castle Fortify issues here: https://github.com/SethArchambault/CastleFortify/issues
Contributing is easy!  Check the readme: https://github.com/SethArchambault/CastleFortify
Twitter: @SethArchambault

Offline

#105 2013-05-18 08:15:40

Matrix
Member
Registered: 2013-04-06
Posts: 137

Re: CastleFortify: Save and share your designs

segarch wrote:

Sweet! Thanks for doing the legwork on this one!  I'll test it out and get it up soon.

It's live! big_smile

EDIT: I have also been experimenting with greenish colors and lower opacity (like 0.25 - 0.3). Check it out and tell me what you think visibility-wise.

Last edited by Matrix (2013-05-18 08:17:42)

Offline

#106 2013-05-18 08:19:12

segarch
Member
Registered: 2013-04-06
Posts: 59

Re: CastleFortify: Save and share your designs

@Matrix Your code is up!  Looks like it works great, thanks! 

BTW - I rewrote the the readme to include a section on contributing. (https://github.com/SethArchambault/CastleFortify)  For changes like this, it's really easy to contribute directly, just click the edit button on the file you want to change (in this case index.php), and then save.  Easy as wikipedia!

Of course this is totally about whatever is easy for you - contributions on the forum are awesome too!


Share castle designs: http://castlefortify.com
Let me know about any Castle Fortify issues here: https://github.com/SethArchambault/CastleFortify/issues
Contributing is easy!  Check the readme: https://github.com/SethArchambault/CastleFortify
Twitter: @SethArchambault

Offline

#107 2013-05-18 08:21:50

Matrix
Member
Registered: 2013-04-06
Posts: 137

Re: CastleFortify: Save and share your designs

segarch wrote:

BTW - I rewrote the the readme to include a section on contributing. (https://github.com/SethArchambault/CastleFortify)  For changes like this, it's really easy to contribute directly, just click the edit button on the file you want to change (in this case index.php), and then save.  Easy as wikipedia!

Good to know!

Offline

#108 2013-05-25 16:16:03

segarch
Member
Registered: 2013-04-06
Posts: 59

Re: CastleFortify: Save and share your designs

Version 0.4 of Castle Fortify Released!

Major Release!! Features:
1. Drag to Draw
2. New Tiles
3. New URLS

1. Drag to Draw
With Jason's latest changes to the game allowing for much more expensive houses, I decided to fast track the drag to draw feature, lest people get carpel tunnel from clicking over and over.  No more clicking for individual tiles! Thanks @mjbarker for bringing this up, and creating an issue on Github - were it not for that this is the kind of feature I may have put off for a far in the future release.

2. New Tiles
What good is a map sharing app if you can't share the maps exactly as they are?  The new tiles are in!

3. New URLs
Okay, you probably won't notice this one, but instead of URLS being castlefortify.com/id=342432 they default to: castlefortify.com/c/342432
(The c is shorthand for "castles", which also works: castlefortify.com/castles/342432)  Underneath the surface this is a major change to the code.  I want to add an API next, so I have moved the code over to take advantage of the Slim framework http://www.slimframework.com/ and Redbean redbeanphp.com.
Proper API formatting will be like this: castlefortify.com/api/v1/castles/342432
So I wanted the site to function similarly.  This is probably more than you wanted to know.. but basically you can sleep better knowing that the code is getting a little more structured (while maintaining simplicity) and will hopefully make it easier for other developers to get in there and see what's going on, and contribute.

Alright that's it for now - If you spot any bugs, just reply to this thread!

Last edited by segarch (2013-05-25 16:16:44)


Share castle designs: http://castlefortify.com
Let me know about any Castle Fortify issues here: https://github.com/SethArchambault/CastleFortify/issues
Contributing is easy!  Check the readme: https://github.com/SethArchambault/CastleFortify
Twitter: @SethArchambault

Offline

#109 2013-05-26 02:47:54

Matrix
Member
Registered: 2013-04-06
Posts: 137

Re: CastleFortify: Save and share your designs

Awesome additions.

Of course #1 and #2 are awesome, but I really like #3 big_smile

I spotted a caching issue... I had to manually force a redownload of the new javascript code to get most of the new functionality. I guess just changing the fortifiy.js?v=1 to fortifiy.js?v=2 should do the trick.

EDIT: I made the change and sent a pull request on github.

Last edited by Matrix (2013-05-26 02:55:24)

Offline

#110 2013-05-26 06:38:24

segarch
Member
Registered: 2013-04-06
Posts: 59

Re: CastleFortify: Save and share your designs

@matrix you rule! Thanks for fixing that!

Oh, and also thanks to @mjbarker for finding some more issues and @matrix again for fixing them!!

Last edited by segarch (2013-05-26 12:22:24)


Share castle designs: http://castlefortify.com
Let me know about any Castle Fortify issues here: https://github.com/SethArchambault/CastleFortify/issues
Contributing is easy!  Check the readme: https://github.com/SethArchambault/CastleFortify
Twitter: @SethArchambault

Offline

#111 2013-06-29 17:01:21

segarch
Member
Registered: 2013-04-06
Posts: 59

Re: CastleFortify: Save and share your designs

Version 0.6 of Castle Fortify Released!

Features:
1. Improved ease of uploading maps

Now instead of clicking "Code" you click "Import."  Since I suspect more people are interested in using this tab for importing their maps, than messing around or exporting, this makes sense.  Also added a wiki article on how to import your code from Castle Doctrine. https://github.com/SethArchambault/Cast … e-Doctrine

I'm on a Mac so the walkthrough doesn't cover PC or Linux in any detail. If you have experience with PC or Linux and want to write up a walkthrough of finding the Castle Doctrine map code, please post it here or on the wiki!  I'm sure others have questions on how to do this.

2. New, clean code structure

This is mostly for my sake, but I probably fixed some glitches along the way, and now features can be added in a more logical way than just stuffed in there. 

Alright, that's all I've got for now.  Let me know if you see any bugs - or have any great feature ideas!


Share castle designs: http://castlefortify.com
Let me know about any Castle Fortify issues here: https://github.com/SethArchambault/CastleFortify/issues
Contributing is easy!  Check the readme: https://github.com/SethArchambault/CastleFortify
Twitter: @SethArchambault

Offline

#112 2013-06-29 18:41:48

jasonrohrer
Administrator
Registered: 2013-04-01
Posts: 1,235

Re: CastleFortify: Save and share your designs

Thank you for continuing to work on this!

Offline

#113 2013-06-29 19:51:47

segarch
Member
Registered: 2013-04-06
Posts: 59

Re: CastleFortify: Save and share your designs

jasonrohrer wrote:

Thank you for continuing to work on this!

My pleasure! It's awesome to see people using it.


Share castle designs: http://castlefortify.com
Let me know about any Castle Fortify issues here: https://github.com/SethArchambault/CastleFortify/issues
Contributing is easy!  Check the readme: https://github.com/SethArchambault/CastleFortify
Twitter: @SethArchambault

Offline

#114 2013-06-30 00:05:54

Ludicrosity
Member
From: US
Registered: 2013-06-22
Posts: 144

Re: CastleFortify: Save and share your designs

This is such a cool tool thanks for making it! One thing I noticed is that it doesn't seem to tabulate the total cost of the house anymore. Is this intentional?

Offline

#115 2013-06-30 00:28:37

dalleck
Member
Registered: 2013-04-13
Posts: 250

Re: CastleFortify: Save and share your designs

Ludicrosity wrote:

This is such a cool tool thanks for making it! One thing I noticed is that it doesn't seem to tabulate the total cost of the house anymore. Is this intentional?

It does so!  It is down the bottom.


The rich aren't safe. Nobody is safe. -jere                   ...but the smell wafts out from the pit, obviously. - Jason Rohrer

And the more dickish they are, the more I feel like beating a house to destruction after finally figuring it out. -bey bey

Offline

#116 2013-06-30 05:56:59

Ludicrosity
Member
From: US
Registered: 2013-06-22
Posts: 144

Re: CastleFortify: Save and share your designs

That's interesting. So it does show the total cost when I build it by hand, but for some reason, it's no longer showing me the total cost when I import the code from the stdout file. It used to before the latest version? Maybe it's something on my end.

Offline

#117 2013-06-30 12:40:17

segarch
Member
Registered: 2013-04-06
Posts: 59

Re: CastleFortify: Save and share your designs

Ludicrosity wrote:

That's interesting. So it does show the total cost when I build it by hand, but for some reason, it's no longer showing me the total cost when I import the code from the stdout file. It used to before the latest version? Maybe it's something on my end.

Hmm, I'll look into this - Thanks for the heads up!


Share castle designs: http://castlefortify.com
Let me know about any Castle Fortify issues here: https://github.com/SethArchambault/CastleFortify/issues
Contributing is easy!  Check the readme: https://github.com/SethArchambault/CastleFortify
Twitter: @SethArchambault

Offline

#118 2013-06-30 22:27:27

segarch
Member
Registered: 2013-04-06
Posts: 59

Re: CastleFortify: Save and share your designs

Ludicrosity wrote:

That's interesting. So it does show the total cost when I build it by hand, but for some reason, it's no longer showing me the total cost when I import the code from the stdout file. It used to before the latest version? Maybe it's something on my end.

You were spot on with this.  Castle Fortify was messing up in calculating price in certain kinds of imports, all fixed now - Thanks so much for reporting it!


Share castle designs: http://castlefortify.com
Let me know about any Castle Fortify issues here: https://github.com/SethArchambault/CastleFortify/issues
Contributing is easy!  Check the readme: https://github.com/SethArchambault/CastleFortify
Twitter: @SethArchambault

Offline

#119 2013-06-30 23:48:08

Ludicrosity
Member
From: US
Registered: 2013-06-22
Posts: 144

Re: CastleFortify: Save and share your designs

Thanks to you for creating this in the first place! big_smile

It works great now!

Offline

#120 2013-07-01 12:33:57

segarch
Member
Registered: 2013-04-06
Posts: 59

Re: CastleFortify: Save and share your designs

Ludicrosity wrote:

Thanks to you for creating this in the first place! big_smile

It works great now!

Glad you find it useful! smile


Share castle designs: http://castlefortify.com
Let me know about any Castle Fortify issues here: https://github.com/SethArchambault/CastleFortify/issues
Contributing is easy!  Check the readme: https://github.com/SethArchambault/CastleFortify
Twitter: @SethArchambault

Offline

#121 2013-07-22 09:56:05

largestherb
Member
From: england
Registered: 2013-05-27
Posts: 381

Re: CastleFortify: Save and share your designs

Bumpity bump!

importing a map with a dog on another tile (pit, trapdoor, grid, etc.(?)) produces a blank tile!

i'll go put together an example quick..

http://castlefortify.com/c/5348357

998#998#998#998#998#998#998#998#998#998#998#998#998#998#998#998#998#998#998#998#998#998#998#998#998#998#998#998#998#998#998#998#998#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#998#998#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#998#998#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#998#998#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#998#998#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#998#998#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#998#998#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#998#998#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#998#998#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#998#998#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#998#998#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#998#998#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#998#998#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#998#998#0#0#0#103#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#998#998#0#0#0#110,72:3!#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#998#0#0#0#0#111,72:2!#0#0#0#0#0#0#0#0#0#999#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#998#998#0#0#0#112,72:2!#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#998#998#0#0#1#0#0#0#0#0#0#0#0#0#1#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#998#998#0#0#1#30,72#104,72#105,72#106,72#109,72#107,72#100,72#108,72#101,72#1#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#998#998#0#0#1#1#1#1#1#1#1#1#1#1#1#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#998#998#0#0#0#0#0#0#0#0#0#1023#1042#1011#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#998#998#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#998#998#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#998#998#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#998#998#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#998#998#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#998#998#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#998#998#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#998#998#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#998#998#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#998#998#998#998#998#998#998#998#998#998#998#998#998#998#998#998#998#998#998#998#998#998#998#998#998#998#998#998#998#998#998#998#998

this is actually..

MXnBPQ0.png
(two merged screenshots, not client haxing smile)

Last edited by largestherb (2013-07-22 10:16:10)

Offline

#122 2013-07-22 11:29:56

segarch
Member
Registered: 2013-04-06
Posts: 59

Re: CastleFortify: Save and share your designs

thanks so much largestherb!  Definitely helps to have such a clear example - will give me something to test on... Not sure when I'll be able to get around to fixing it, as I'm in the process of moving between states, but will make sure it's on the list!


Share castle designs: http://castlefortify.com
Let me know about any Castle Fortify issues here: https://github.com/SethArchambault/CastleFortify/issues
Contributing is easy!  Check the readme: https://github.com/SethArchambault/CastleFortify
Twitter: @SethArchambault

Offline

Board footer

Powered by FluxBB 1.5.8