Drumersl

Joined: Jul 24, 03

Email

A burned retina is a well used retina

My libraries

Anything would help


 

 

A poor attempt at a children et cetera

That title sounds weird, but well the new elements in Byond are called "Child elements" so I guess that is the proper plural?

If you feel like looking at messy, buggy, un-commented code, I have just the thing for you: my late night, half-awake attempt at a container system using panes and grids. Feel free to take it and do what you will with it. I don't need to hear about the bugs though, I probably already know about them. That is unless you also plan on fixing them.

Here was what I was trying to accomplish:
--Click and Drag inventory
--The ability to open and close bags that are in your inventory. (pick up a bag and double click it)
--The ability for bags to reduce the weight of the items inside of them. (which was why I choose to have a proc that re-scans the inventory/bag every time instead of just adding and subtracting the weight. (this doesn't work right now))
--Experiment with the new features.


NOTE: This was in no way an attempt to make a good looking skin. Just to make it work...sort of. So beware of ugly icons and the such.

Here is the link:
I suggest running it before you look at the code.
http://members.byond.com/Drumersl/files/Inventory_src.zip

Posted by Drumersl on Thursday, August 09, 2007 03:13AM - 0 comments / Members say: yea +2, nay -0
(Edited on Thursday, August 09, 2007 03:24AM)

4.0 Interface Questions.

A couple things I would like some elaboration on:

Anchors: I know basically how they work, but what I am wondering is if I can create a map element that stays centered and stretches 50% as much as the window it is in stretches. I know the first anchor has to be set to 50,0 to keep it centered, but I don't know if it is possible to have it stretch and keep it centered. I could set it for Top Left and then 100,50 like in the guide, but then it would stretch to much horizontally. And 50% vertically. I want it to stretch 50% horizontally and vertically while at the same time remaining at the top center.

Tab, Child, and Grids: I have not seen any real guide or info on these. How do they work? How do you set them up?

Posted by Drumersl on Sunday, August 05, 2007 12:59AM - 8 comments / Members say: yea +1, nay -0

Floors: The Multiple Layer Demo Version 2

I have updated my Floors demo to make it easyer to use with a pre-existing engine and added more documentation.
Check it out under my demos.

Posted by Drumersl on Friday, March 16, 2007 01:09AM - 0 comments / Members say: yea +1, nay -0

Encryption?

Well I was going through my folders and I found an enryption program I have written. There seems to be few people currently releasing these types of things, so I might as well put it out there now. By the way, this is very compacted and un-readable code as you can tell; I could not find the original non-compacted version. However, if anyone is interested I may rewrite it to make it more readable.

How it works:
It works off of the ascii values of whatever you are encrypting, so obviously this method wouldn't work for anything other than ascii characters. It takes a text string, and a text key and creates a string of seeming random numbers.

To do this, the function goes letter by letter and finds the ascii value of the current letter, the previous letter, and the ascii value of a letter in the pass key. (The letter in the pass key is chossen using modular division: a%length(key) where a is the current letters position in the original word.) These values are then added together and create the string of numbers. It may not be the most secure method, but it works well enough if you pick a good enough key.

encrypt_src.zip

Posted by Drumersl on Friday, March 09, 2007 01:56AM - 2 comments / Members say: yea +1, nay -0

Floors Source

I have cleaned up the code a bit and decided to release the source. (Floors_src.zip). Please give me feedback on it. I am going to release it as a demo eventually, but for now it could use a bit more work.

Please don't steal this; I have worked a long time on it. However, I have a feeling it is too complex for most people who would steal it to get any use out of it.

It defaults to blocking the cutting of corners, to change that just click on Toggle Cut Corners in the commands tab. (I know having it block cutting corners can be pretty annoying)

In this tab you can also change if you want upper levels to disappear and if you want to just block all corners.

[Edit] This can now be found under My demos.

Posted by Drumersl on Wednesday, November 01, 2006 05:30PM - 0 comments / Members say: yea +0, nay -0
(Edited on Saturday, November 04, 2006 10:55PM)

 

 

Files

(30.3 KB)
(1.4 KB)
(8.9 KB)
(266.1 KB)