z2

I agree. Take me to the spicy page.
It is currently Tue Oct 17, 2017 1:15 pm

All times are UTC




Post new topic Reply to topic  [ 291 posts ]  Go to page 1, 2, 3, 4, 5 ... 20  Next
Author Message
 Post subject: Tyger
PostPosted: Sun Jun 21, 2009 8:40 am 
Offline
OH YES! USE VINE WHIP! <3
User avatar

Joined: Tue Sep 11, 2001 9:11 am
Posts: 1738
Location: scabsboro
So quantum P spoiled the Pygame based recreation of ZZT i've started working on.

Latest Version
Google Code page

Screenshots
Image
Image
Image
Image
Image
Image
Image
Image
Image

Usage

Just put some ZZT files in the same directory as you would with ZZT. Press P to load a world and +/- to scroll through the boards.

Left clicking in the window is my shortcut to exit immediately so watch out for that!

Right clicking will spit out information on whatever element you right clicked on. Well, it will from source, there's no terminal that opens in the compiled version! Whoops.

_________________
<asgromo> Dr Dos; What is this monstrocity?
<Spectere> Aura 2
<asgromo> This thread is useless... I'll just... read the Featured Games article.
<asgromo> ... I'll just look for boners.


Last edited by Dr. Dos on Tue Aug 17, 2010 7:52 pm, edited 6 times in total.

Top
 Profile  
 
 Post subject:
PostPosted: Sun Jun 21, 2009 6:16 pm 
Offline
this is my hammer
User avatar

Joined: Wed Mar 12, 2003 11:40 am
Posts: 2767
Location: between the black and white spiders
that :c looks like a sad face

here's hoping you fix the object display soon. good luck, doctor.

_________________
he looked upon the world and saw it was still depraved :fvkk:

Overall: Rotton egg for breakfast


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jun 22, 2009 4:21 am 
Offline
fgsdfs
User avatar

Joined: Wed Mar 12, 2003 5:44 pm
Posts: 2421
Location: :noitacoL
the bar on the bottom is really snazzy. nice use of the Pt char.

_________________
*POW* *CLANK* *PING*


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jun 22, 2009 9:37 am 
Offline
gore Arnold
User avatar

Joined: Tue Dec 18, 2007 6:53 pm
Posts: 250
Location: Burning Oak retirement facility
Dr. Dos, you are one sharp son of a gun.

_________________
My waste is my weapon.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jun 22, 2009 8:03 pm 
Offline
OH YES! USE VINE WHIP! &lt;3
User avatar

Joined: Tue Sep 11, 2001 9:11 am
Posts: 1738
Location: scabsboro
Zenith Nadir wrote:
that :c looks like a sad face

here's hoping you fix the object display soon. good luck, doctor.


Image
Image
Image

Edit: Also Lineswalls and save files.

Image
Image

_________________
<asgromo> Dr Dos; What is this monstrocity?
<Spectere> Aura 2
<asgromo> This thread is useless... I'll just... read the Featured Games article.
<asgromo> ... I'll just look for boners.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jun 23, 2009 10:44 am 
Offline
this is my hammer
User avatar

Joined: Wed Mar 12, 2003 11:40 am
Posts: 2767
Location: between the black and white spiders
Image

_________________
he looked upon the world and saw it was still depraved :fvkk:

Overall: Rotton egg for breakfast


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jun 23, 2009 11:23 pm 
Offline
I hope she made lotsa spaghetti!
User avatar

Joined: Sat May 20, 2006 2:58 am
Posts: 167
Location: LocacoLocacoL :LoL!
That application is DEFINATE WIN! :keen:
It may be incomplete, but may start anyone off for making ZZT clones or ZZT editors. But this is cool!


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jun 24, 2009 8:27 am 
Offline
this is my hammer
User avatar

Joined: Wed Mar 12, 2003 11:40 am
Posts: 2767
Location: between the black and white spiders
stop posting. just stop.

_________________
he looked upon the world and saw it was still depraved :fvkk:

Overall: Rotton egg for breakfast


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jun 24, 2009 4:43 pm 
Offline
I hope she made lotsa spaghetti!
User avatar

Joined: Sat May 20, 2006 2:58 am
Posts: 167
Location: LocacoLocacoL :LoL!
Zenith Nadir wrote:
stop posting. just stop.


Zenith, Stop trolling on me. Seriously


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jun 25, 2009 12:17 am 
Offline
hi
User avatar

Joined: Fri Aug 03, 2007 10:34 pm
Posts: 114
A fully functional multi-platform ZZT port with unlimited amount of flags and variable support with no limitations, it's what everyone needs. I hope you make it happen.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jul 06, 2009 8:52 pm 
Offline
my power level is enormous
User avatar

Joined: Thu Mar 20, 2003 9:34 pm
Posts: 526
I agree with microwave. But also include some of this action: http://www.youtube.com/watch?v=ajNk1S146rY


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 17, 2009 1:34 am 
Offline
OH YES! USE VINE WHIP! &lt;3
User avatar

Joined: Tue Sep 11, 2001 9:11 am
Posts: 1738
Location: scabsboro
Sorry guys I was busy with furry shit and TF2!!!!!

Check it:

Image

Do you see that title bar?

that is IMPORTANT debug information that you guys JUST WOULDN'T UNDERSTAND.

Image

You can now move. Also super basic collision detection is in, by which I mean when you try to walk into something it checks if it's classified as WALKABLE, SOLID, or INTERACTION.

So solid/normal/breakable walls are SOLID as touching them does nothing. Fakes are walkable since nothing happens but you walking on them. Lions are INTERACTION since you get mauled by them in a visceral fight for the death.

More peculiar is the timing situation. I pretty much have no idea how these "timers" work, they just magically make the game run at the proper speed.

So my logic was as follows, there are 10 cycles in a second. If I ran the game at 60 frames per second there would be a cycle every 6 frames, or since it's fucking ZZT and there's no reason to redraw the screen that many times I could cut it down to 30 fps and have a cycle every 3 frames.

Then on each frame I would calculate the current cycle, and if it divided evenly into the element's cycle it would allow it to move or do whatever it needed.

Except this is too fast!

So just for the hell of it I tried 10fps which would mean a cycle every frame which is what ZZT does anyway now that I think about it (why did I think I needed 30 fps?) but even that is slightly faster than ZZT itself in tests of running the player from one end of the board to the other.

But I'm more inclined to believe that's ZZT on windows XP running slower than it should. It certainlly seems playable at least.

The horrible incorrect oop bug is still hanging around. Also the under tile thing ZZT does isn't actually implemented, those normals that disappear are actually fake walls.

Other features I started to add that didn't immediately work so I put off for the time being include:

* Custom fonts/palettes
* Custom walls/fakes by giving them stats

_________________
<asgromo> Dr Dos; What is this monstrocity?
<Spectere> Aura 2
<asgromo> This thread is useless... I'll just... read the Featured Games article.
<asgromo> ... I'll just look for boners.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jul 19, 2009 7:55 am 
Offline
Level 17 Accordion Thief
User avatar

Joined: Fri Sep 12, 2003 1:41 am
Posts: 1423
Location: Edmonds, WA
I ran a few tests in ZZT under DOSBox, measuring the length of a cycle while intentionally slowing down ZZT. As I reduced the amount of slowdown, I got more cycles per minute, until it leveled off at about 546 cycles/min (DOSBox settings don't seem to matter much). This seems to imply that this is the correct speed, and not a symptom of ZZT being slow. But why 546 instead of 600?

I immediately remembered reading DOS programming tutorials about the PIT timer, because it has a wacky frequency: 1.193182 MHz. If you divide that by 65536 (2^16), you get 18.2 Hz. 546 cycles/min = 9.1 cycles/sec = half of 18.2 Hz. It's not proof, but it's enough of a coincidence to convince me.

So i guess ZZT's frame rate ought to be 9.1032548384 frames/sec. Though I can think of advantages with picking 10 frames/sec (ideal numbers vs. subtle familiarity of speed).

Anyway, Tyger is looking more and more awesome! Being a purist, I didn't like the HUD at first, but it's starting to grow on me.

What's the horrible incorrect oop bug?


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jul 19, 2009 6:43 pm 
Offline
OH YES! USE VINE WHIP! &lt;3
User avatar

Joined: Tue Sep 11, 2001 9:11 am
Posts: 1738
Location: scabsboro
Code:
Stat Elements: 25
PADDING PADDING PADDING Length: 29545
TEMP IS ll blocks your way over the bridge.     "Grrr...  Pay for passage or forgetabout the castle!"!bribe;Bribe the troll...........10 Gems#end:bribe#take gems 10 toopoor#lock"Now hurry on along..."/i/n/i/n/i/i/i/i/i/i/i/i/s/i/s#unlock#end:isin#if scepter allow$The troll blocks you:     "Nobody leaves the castle without      the Scepter of Lots 'n Lots of      Power.  Return to your quest!"#end:allow#lock"Continue on, brave adventurer."#restore touch/n/i/n/i/i/i/i/i/i/i/i/s/s#unlock#end:toopoor"You can't afford it, idiot!",Bug MazeLength: 271
TEMP IS PADDING PADDING PADDING PADDING PADDING PADDING PADDING PADDING PADDING PADDING PADDING PADDING PADDING PADDING Length: 26740
TEMP IS seek/i/i/i/i/i#send bombed


!=

Code:
@Troll
#end

:touch
#if blocked w isin
A troll blocks your way over the bridge.

     "Grrr...  Pay for passage or forget
about the castle!"

!bribe;Bribe the troll...........10 Gems
#end

:bribe
#take gems 10 toopoor
#lock
"Now hurry on along..."
/i/n/i/n
/i/i/i/i/i/i/i/i
/s/i/s
#unlock
#end

:isin
#if scepter allow
$The troll blocks you:

     "Nobody leaves the castle without
      the Scepter of Lots 'n Lots of
      Power.  Return to your quest!"
#end

:allow
#lock
"Continue on, brave adventurer."
#restore touch
/n/i/n
/i/i/i/i/i/i/i/i
/s/s
#unlock
#end

:toopoor
"You can't afford it, idiot!"

_________________
<asgromo> Dr Dos; What is this monstrocity?
<Spectere> Aura 2
<asgromo> This thread is useless... I'll just... read the Featured Games article.
<asgromo> ... I'll just look for boners.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jul 19, 2009 10:17 pm 
Offline
OH YES! USE VINE WHIP! &lt;3
User avatar

Joined: Tue Sep 11, 2001 9:11 am
Posts: 1738
Location: scabsboro
Also the timer actually seems to be fine with floating point numbers, so I'm now running it at 9.1032548384 fps and it seems to sync better with ZZT itself.

Edit:

Furret: i found the problem
Furret: i'm writing a zzt module in python and i hit your bug and solved it
Furret: i don't know really why it happens, but the open() and read() functions fuck with newlines and can't be used to read binary files, it seems
Furret: instead you should use os.open() and os.read()

_________________
<asgromo> Dr Dos; What is this monstrocity?
<Spectere> Aura 2
<asgromo> This thread is useless... I'll just... read the Featured Games article.
<asgromo> ... I'll just look for boners.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 291 posts ]  Go to page 1, 2, 3, 4, 5 ... 20  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group