dMZX Forums: BitSystem Inventory - dMZX Forums

Jump to content

Message from the Management

When you finish a new game, demo, engine, or utility, the first thing to do is submit it to the archive for approval. (Log in first, then Upload a New Game from the sidebar.) Then feel free to post about it in this forum; in fact, please continue to do this. This is so people will actually know about your game and play it. As nice as it is to have archive uploads automated, it's not going to help much if no one knows you have a new game to play.

When uploading your games to the archive, please zip up your game using the .ZIP format, even if it is just a .MZX file. As for less popular formats (such as RAR and 7Z), games uploaded in these formats will be rejected. This is because as wonderful as those compression algorithms might be, ZIP is a near universal compression standard, and the only one that will work with the in-game archive browser planned for MZX.

You can also attach your game to a new thread in this forum. In this case, you can use whatever compression format you find suitable. NOTE: Games posted this way won't be put into the archive unless submitted to the archive proper, or unless the author states he/she wants the game in.

Lastly, we suggest you post a suitable screenshot of your submission (in PNG format) along with the game.
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

BitSystem Inventory You CAN teach an old dog new tricks.

#1 User is offline   Revvy 

  • Jeez guys, there's no need to be narky.
  • PipPipPipPipPipPip
  • Group: Members
  • Posts: 3,520
  • Joined: 05-March 01
  • Gender:Male
  • Location:Ontario, Canada

Posted 19 November 2002 - 02:49 PM

This was an engine I created in about two hours on the weekend. Basically, it's an inventory system using Exo's new $string character functions. Everything's fully documented, so I won't bother explaining it here. I could also have used the bitplaces stuff, but I'm more comfortable with this system.

Attached File(s)


<+AFK> Bringing whisky to my mother is like irrigating a lake.

<+AFK> dormando's apathy is palpable.
* AFK palpates
<dormando> stop that

<Malwyn> undressing with revvy a little over a metre away. new definition of awkward.
0

#2 User is offline   Revvy 

  • Jeez guys, there's no need to be narky.
  • PipPipPipPipPipPip
  • Group: Members
  • Posts: 3,520
  • Joined: 05-March 01
  • Gender:Male
  • Location:Ontario, Canada

Posted 29 November 2002 - 07:55 PM

wow, 12 downloads and not a single comment... I've been trying to fix the drop code, I'm probably just going to recode it though.
<+AFK> Bringing whisky to my mother is like irrigating a lake.

<+AFK> dormando's apathy is palpable.
* AFK palpates
<dormando> stop that

<Malwyn> undressing with revvy a little over a metre away. new definition of awkward.
0

#3 User is offline   qwertie 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 38
  • Joined: 20-August 02

Posted 01 December 2002 - 08:06 PM

instead of copy 'thisx' 'thisy' use
duplicate self. ex:

."@robot"
. "Just to make sure the duplicated robot doesent duplicate itself again"
wait 1 

duplicate self at "xcount" "ycount"
send at "xcount" "ycount" to "go"
die
: "go"
*"I am the duplicated robot!"
end


Or sometimes if you know that the original robots position will be absolute,

This code assumes original robot stays at 2, 2
."@robot"
if not at 2 2 "go"
duplicate self "xcount" "ycount"
die
:go
*"I am the duplicated robot at &thisx&, &thisy&!"
end


Edit: Forgot to close code tag

This post has been edited by qwertie: 01 December 2002 - 08:07 PM

0

#4 User is offline   qwertie 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 38
  • Joined: 20-August 02

Posted 01 December 2002 - 08:33 PM

EDIT: Attachment removed, download from next post
If you haven't already I think i fixed your drop code,

Heres the edited mzx file.
I fixed the baloon sword and rope(not the example rope) items in the board.
you can see what lines i replaced(at the bottom) and fix the rest your self.

d is still the drop key.

That extra robot with the :keyo i made so i could see what was going on behind the overlay,
and the *"&bit& &diry&... line was also debug info, both can be removed.

did you know how to use rel first and rel last?

EDIT: Where you say bit, dont you mean byte?
bit = 0 or 1
byte = 8 bits
EDIT2: I also changed some of the robots at the top of the code.

This post has been edited by qwertie: 01 December 2002 - 09:33 PM

0

#5 User is offline   qwertie 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 38
  • Joined: 20-August 02

Posted 01 December 2002 - 09:35 PM

I cleaned it up some more. Now all the items work, Once you drop an item, the copy is removed from the top row, and it knows when you have nothing to drop (Before you could drop the first thing you picked up over and over.

Attached File(s)


0

#6 User is offline   Revvy 

  • Jeez guys, there's no need to be narky.
  • PipPipPipPipPipPip
  • Group: Members
  • Posts: 3,520
  • Joined: 05-March 01
  • Gender:Male
  • Location:Ontario, Canada

Posted 02 December 2002 - 02:49 PM

Heh, ironic. I just got it cleaned up last night also :ninja1:
<+AFK> Bringing whisky to my mother is like irrigating a lake.

<+AFK> dormando's apathy is palpable.
* AFK palpates
<dormando> stop that

<Malwyn> undressing with revvy a little over a metre away. new definition of awkward.
0

#7 User is offline   Revvy 

  • Jeez guys, there's no need to be narky.
  • PipPipPipPipPipPip
  • Group: Members
  • Posts: 3,520
  • Joined: 05-March 01
  • Gender:Male
  • Location:Ontario, Canada

Posted 02 December 2002 - 07:35 PM

Right, here's MY version, which I did without seeing qwetie's. I only followed his advice.

Attached File(s)


<+AFK> Bringing whisky to my mother is like irrigating a lake.

<+AFK> dormando's apathy is palpable.
* AFK palpates
<dormando> stop that

<Malwyn> undressing with revvy a little over a metre away. new definition of awkward.
0

#8 User is offline   qwertie 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 38
  • Joined: 20-August 02

Posted 14 December 2002 - 09:48 PM

Did you take a glance at my code at all?
You are overcomplicating things.
That line of code with the expression that adds dirx and diry to playerx and playery can be made much simpler.

rel player last
copy "bit" 0 "dirx" "diry"

With commands that use two coordinate sets you can use rel player first and rel player last. I once used those line of code for a ZZT-Style bomb engine, which was never released. And you need to lockself the inventory robot when D is pressed and unlock it after the item is dropped.(I can hold D and drop an item several times.)

Sorry for bringing up a rather old topic but I dont get to be at a MZX-Enabled computer very often.(I have XP at home), im using my grandparents win98 comp.
0

#9 User is offline   Frobozz 

  • Ryiah
  • PipPipPipPipPip
  • Group: Members
  • Posts: 1,808
  • Joined: 07-March 01
  • Gender:Not Telling

Posted 15 December 2002 - 01:23 AM

You should be able to get Mzx working with it. Have you tried telling it to enter Windows 98 compatibility mode?

The worst thing that could happen is having to use a bootdisk.
0

#10 User is offline   qwertie 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 38
  • Joined: 20-August 02

Posted 15 December 2002 - 01:57 AM

Frobozz : OF COURSE I TRIED THAT...

Has anyone experimented with the compatability toolkit on the XP cd?
If you can get a good MZX Conf tell me.
Actually I can get mzx to work, just it has NO EMS...Which really really complicates things.

I actually downloaded a 30 day trial of VmWare Workstation and made a virtual machine with win98 on it that was a few months ago, my 30days has long since run out and im not going to pay 500$ to make mzx run.
0

#11 User is offline   Revvy 

  • Jeez guys, there's no need to be narky.
  • PipPipPipPipPipPip
  • Group: Members
  • Posts: 3,520
  • Joined: 05-March 01
  • Gender:Male
  • Location:Ontario, Canada

Posted 16 December 2002 - 02:54 PM

qwertie, on Dec 14 2002, 05:48 PM, said:

Did you take a glance at my code at all?
You are overcomplicating things.
That line of code with the expression that adds dirx and diry to playerx and playery can be made much simpler.

rel player last
copy "bit" 0 "dirx" "diry"

With commands that use two coordinate sets you can use rel player first and rel player last. I once used those line of code for a ZZT-Style bomb engine, which was never released. And you need to lockself the inventory robot when D is pressed and unlock it after the item is dropped.(I can hold D and drop an item several times.)

Sorry for bringing up a rather old topic but I dont get to be at a MZX-Enabled computer very often.(I have XP at home), im using my grandparents win98 comp.

/me feels stupid now.

Urgh, I forgot about it. Oh well. And I like your signature a lot :ninja1:
<+AFK> Bringing whisky to my mother is like irrigating a lake.

<+AFK> dormando's apathy is palpable.
* AFK palpates
<dormando> stop that

<Malwyn> undressing with revvy a little over a metre away. new definition of awkward.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users