AnimeOTK

AnimeOTK (https://animeotk.com/forum/index.php)
-   Anime OTK News (https://animeotk.com/forum/forumdisplay.php?f=4)
-   -   AnimeOTK first coding project - beta version release (https://animeotk.com/forum/showthread.php?t=122)

Ai March 20th, 2007 08:23 AM

AnimeOTK first coding project - beta version release
 
After spanding half the night coding at work (instead of working I have managed to produce a very rough beta version. Currently it still has all the sanity checking and confirmations in the final page and its as ugly as hell! However It is almost usable. There are still lots of sections to be coded in (like number of swats etc) and I have not yet added any suggestions from the first thread - I have coded it in a way that should make it pretty easy to add in new implements
, positions etc.

So far I have written a total of 1874 lines of code which is taking up 37.6kb (look for a text file of about that size and you will see how much code I have written!) and its taken me about 8 hours.

Well enough about me :P On with the test

http://animeotk.com/punishment/spank.php

I would love to see this script tested to destruction - choose as many combinations of options as you can to see if they all work. Please report any errors you encounter in this thread!

Enjoy!

EDIT: Recoded from scratch, new url http://animeotk.com/punishment.php

rogue-kun March 20th, 2007 08:35 AM

selecting no to both
Wear Womens Underwear (Men only)*** Cross Dressing (men only)***
results in:

Cross dressing - no
Cross Dressing - yes
(Cross Dressing chosen at random from the choices)

and
Basic seletion results


included
Cross Dressing Selected

Ai March 20th, 2007 08:46 AM

I can't recreate that bug... could you try it again?

rogue-kun March 20th, 2007 09:08 AM

yep.

a fresh page loaded and seclled agian,

adai i got

Cross dressing - no
Cross Dressing - yes
(Cross Dressing chosen at random from the choices)


(but this time it was not randomly chosen)

_cf March 20th, 2007 10:59 AM

I got the following results

Hand Selected (hand or brush, so good answer)
Over the Knee Selected (any other option would be an error)
No Corner Time (I selected random, so good answer)
Cross Dressing Selected *

* Since I haven't checked Cross Dressing as a Yes random punishment, I interpret that the selector is suggesting that we play a Cross-chan dressing game, which makes it the best selector, ever.

Srsly now, Aren't checkboxes more appropriate for the options instead radiobuttons? if you accidentally click on a radiobutton, you can't unclick it.

Macha March 20th, 2007 11:08 AM

Quote:

Vibrator (women only - for a period of 1-6 hours including cornertime)
Seems a tad...harsh ^^; Same goes for most of the extra punishments and their length, especially

Quote:

Japanese Rope Bondage (for a period of 1-12 hours)
12 hours? O.o I can see blood problems coming up.

Did not find any bugs after playing around with it - well, it just basically returned exactly what I selected^^
I just wonder about these times. o.o

RobM March 20th, 2007 11:44 AM

That is a little excessive for the bondage. I took a Shibari class once (there was a fetish convention in town and I saw it advertised and thought... "whats the worse that can happen?" - if being younger than everyone else by about 10years than the other 15 attendee's and being the only person wearing jeans and a t-shirt surrounded by leatherclad onlookers who keep giving you curious looks sounds a little humiliating, then it did happen).

The moral of the story is: I learnt a lot of interesting new knots which made people in my university sailing club look at me funny and I learnt that 12 hours is far too long, appart from the fact anything worth tying takes several hours to start with, once you've trussed them up you can only leave a sub for more than an hour before cramps set in badly - even for the most comfortable knots.

Obviously, there's a few exceptions to this - The main exception being a body harness which can be worn under the clothes all day, but, thats obviously not a restrictive tie. Not really a spanking related fact either.

Interesting the rope bondage does not specify wether they're tied to the bed, tied in an uncomfortably position or hanging upside-down from a ceiling fan.
Needless to say that would be one of the assumed parts that doesn't need specific selection - but you might want to tone it down on a time/severity scale with the less severe Shibari able to remain in pose longer.

Stoner March 20th, 2007 12:19 PM

completely unrelated in part but talking of ropes and bondage l have this pic saved which many may have seen but it still amuses me :D



still what amuses me the most about this pic is the smile she is making :D

Ai March 20th, 2007 05:30 PM

bah - never happy are you guys :D I'll look into that cross dressing bug at work tonight - it does seem a little strange though as no matter what i have tried ticking I get the right choices made... cross dressing always stays as "no" when i select no, and as "yes" when i select yes and does not appear if I select nothing...

As for punishment extras - those I threw in without thinking too much ;) The rope bondage I was referring to was the body harness Stoner's picture was referring to. At the end of the day there will be a disclaimer saying to only do what you are comfortable with and we accept no respoisibility etc...

LuckyOtakuChibi March 20th, 2007 10:48 PM

wait what is the point to this?

Tienz March 20th, 2007 11:23 PM

Can't get more than 1 extrapunishment to show up at a time.

IsisKittinger March 21st, 2007 12:46 AM

More than one is not currently implemented.

Elias-kun March 21st, 2007 01:32 AM

What's the point of this? Just wondering.

Ai March 21st, 2007 08:02 AM

Its a bit of fun - it will (when finished) add an element of risk and a bit of unknown to any normal spanking scenario. Will the spankee get off with a light spanking or will it be a serious one? Pure, harmless fun for consensual use only :P

Sufferin' Samurais!! March 21st, 2007 08:55 PM

Quote:

Originally Posted by Ai (Post 2637)
Its a bit of fun - it will (when finished) add an element of risk and a bit of unknown to any normal spanking scenario. Will the spankee get off with a light spanking or will it be a serious one? Pure, harmless fun for consensual use only :P

Umm... I'm sorry, but it's still unclear as to what the actual point of this system is, other than to generate punishment factors. My guesses are that when you want to play at spanking your partner, you use this to determine the punishment and add that thrill of the unknown to it... OR that, when writing a fanfic, you can randomise what punishments your characters get, yadda yadda.

But, in the end, it's still unclear as to what goal this was originally meant to accomplish.

Stoner March 21st, 2007 09:35 PM

the same could be said about all those text based war game things like the old kings of chaos one or others ppl were thinking were all the rage at one point or another.. but it could be interesting and at the same time for us it can be a scripting experiance besides it could turn into something very different from its original plan :) hell it may eventually contain images, who knows its still in the design phase :)

cypher_7z March 21st, 2007 10:10 PM

at any case, it is an intriguing new development that hopefully will further distinguish the site. i think all active members of the community can agree that that is something to look forward to.

Elias-kun March 21st, 2007 11:30 PM

Why not a generated story?

Fill in names, implements etc etc?

Tienz March 22nd, 2007 01:53 AM

This is a good start. I've seen a few implemented stories. They are ok...

Elias-kun March 22nd, 2007 02:18 AM

Remember any? Like links too?

Ai March 22nd, 2007 06:57 AM

Hmm you might have just given me an idea for coding project number two :P A generated story with chosen names and genders... It would be quite simple - using a random string replacement and variables for "him, her, his etc" Have 5 or so openings, 5 middles and 5 end parts that all tie in together (and mabey different sections for each implement etc) it could work quite well. However I would need the help of at least one writer with a lot of free time to make it fit lol.

Anyhow - to answer your question St. Finnegan: You guessed right - it will add spice to an existing spanking relationship by randomizing the spanking - say the spankee hates the cane, but the spanker loves it they could agree to let the script decide for them - that way nobody feels too pressured :P and maybe even help out a writer who is stuck for ideas about a spanking scenario - I must admit I hadn't thought of that but you make a very good point ^_^

Ai March 22nd, 2007 09:00 PM

Quick UPdate: Beta 0.3 has now been released - it includes the bug fixes form the unseen 0.2 version and some more additions ;)

Macha March 22nd, 2007 09:05 PM

Quote:

Originally Posted by Ai (Post 2821)
Anyhow - to answer your question St. Finnegan: You guessed right - it will add spice to an existing spanking relationship by randomizing the spanking -

Ooh, so it's like the "roll three dice" sheme :O

Ai March 23rd, 2007 06:43 AM

Indeed - the initial idea is based off an article I read on http://www.thespankingcorner.com/index.shtml (I forget which author and there are too many to search quickly) about a game that was played when the author was a child. To break up the monotony and predictable spankings (including extra hard spankings as revenge) they used a set of dice to decide how the spanking was going to be played out ;)

On another note, V0.4 beta has now been released and is uploaded ready for testing - enjoy ;) Feedback and error reports are most welcome!

Spankofox March 23rd, 2007 08:13 AM

Wow, this is pretty impressive; I've never seen anything like it. A friend I just finished with a short video game, so I understand how much work goes into coding. Thanks for all the hard work, Ai.

rogue-kun March 23rd, 2007 05:41 PM

What's the difference between the two severity options? you have a radio button group version, and a check box group version

Ai March 23rd, 2007 05:55 PM

You can either decide the severity yourself (use the radio buttons) or have the script pick randomly - choose "Pick randomly" on the radio buttons and use the checkboxes to pick the different severity levels you wish to have... To be honest I could remove the radio buttons now I think about it as people could just tick a dingle box... something to think about maybe

IsisKittinger March 25th, 2007 09:39 PM

Perhaps on the additional punishments, you can use a For loop to count them out and create an array with each selected punishment. As each one is used, remove it from the array so as not to have duplicates.

Ai March 29th, 2007 08:04 AM

Beta 0.5 has been released! New additions include "Extra Information" and instead of an automatic 50% chance (when selecting random for cornertime and extra punishments) you can now choose between 10-90% No bugfixes this time as none have been reported.

sphynx March 29th, 2007 08:57 AM

Okay, so... Rogue said I had to mention these as we were discussing them in the chat...

1> I noticed there's no level of clothing specified except for cornertime, so I guess it assumes all spankings are bare-bottom spankings. Why not a selector for "fully dressed", "over the underwear", and "bare bottom"? I think I've recieved all 3 fashions in my lifetime.

2> It seems to go in the strict order of Spanking ---> Cornertime ---> additional punishment. Would it be a nightmare to add steps to the process? As in, up to 3 steps maximum. For example: Start with spanking fully clothed (warmup!), then some spanking over the underwear (good and softened up) and finishing with good old-fashioned bare bottom (FOR THE WIN! .. er... you know what I mean). Or possibly in a completely different order. Underwear only, or underwear then bare bottom.. heck even in reverse... start bared, then give a little protection (the merciful spanker!).

3> in reference to 2... if a multi-step process could be done... different implements with each step? (Randomly picks implements with his mind) Like say... Fully clothed and caned, followed by a hairbrush over the underwear, then hand spanking on the bare bottom?

4> in reference to 3... if that can be done... potential cornertime between steps (cool-down time?). Obviously it would be a lot less than your standard cornertime.

I mean I figure most of those could have an option to just be left out and do your standard spank/corner/extra process... but I've read some pretty incredible stories that have had multiple steps and all and just wondered if it'd be too hellish to try to code in ^_-. I don't wanna break ya, Ai... otherwise everyone else will spank me :(


PS. Love the certificate idea! Gives it a medieval announcement feel to it. "Here ye, here ye! On the fourth day of the fifth month, XXX is to be spanked by YYY in the following method(s).... (description ensues!)". There's a job for the town crier... hee hee.. get it.. crier... oh I'm bad >.<

Ai March 31st, 2007 06:52 PM

A new version - 1.0 beta has been released. The entire script has been recoded to allow multiple spankings, extra punishments and cornertime during a spanking scenario ;) The file size has gone from about 80kb to a massive 341kb. Input and output pages are also a lot cleaner now ;) As always let me know about any bugs!

Lord Atomosk April 1st, 2007 04:00 AM

my extra punishments weren't metioned. also, i think there should be more extras, maybe a new category. things like blowjobs, etc. also, the instruments are somewhat limited. maybe combinations of choices could open up secret instances or options? sound like a good idea?

Ai April 1st, 2007 05:42 AM

Note the fact that this script is still a beta - i have spent my time working on the core code, not on adding extras... Things like "Blowjobs" will never be included in the script - its a spanking website, not an oral website ;)

Nightfall April 4th, 2007 01:19 PM

I still feel that a belt or tawse ought to be included in the implements list, along with, maybe, a slipper. Those two are, in my opinion, best for the "face down" positions.

Ai April 4th, 2007 02:19 PM

The implements and options will be expanded once I finish the core code ;) I have currently only included a basic selection ;)

Nightfall April 5th, 2007 01:28 AM

Well, that's good to hear. :)

IsisKittinger April 13th, 2007 09:02 PM

It's been a while now; nothing new on the script?

Stoner April 13th, 2007 09:19 PM

he was round my place so he hasnt had a whole lot of time to work on the script, also there are other more pressing things that we need to think of before work maybe done on the script.. however as and when things occur l believe Ai or myself will inform everyone of what is happening and when.

doctorfate May 8th, 2007 02:13 PM

Hi,

I tried using the Punishment Selector today and there seems to be a problem. After I select the implements, position, dress and severity, I'll press the Punish button and get the following error message:

ERROR: No implements selected!

I've tried this a number of times with many different options and no success. Any ideas?

Ai May 9th, 2007 07:11 AM

Yes it does indeed seems to be broken - i assume something went wrong with it during the server move. When I have time I shall look into it ;)


All times are GMT. The time now is 11:33 PM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© AnimeOTK.com 2007-2012