Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Program Announcements / A really super fast way of designing the tile textures on a matrix.- My program:P. What do you think

Author
Message
Terabyte
21
Years of Service
User Offline
Joined: 28th Dec 2002
Location: UK
Posted: 28th Jun 2003 19:28 Edited at: 28th Jun 2003 19:31
Anyone who has ever had to texture an entire matrix and all the tiles in it will know how much time it takes and how many lines of code it takes and how after 3 hours its still not quite right. and that tile there should be brought forwa..... Here's the answer.

A simple program to aid you in the design of a matrix.

When you run the program a 60*60 grid is prodced which can be adjusted at any time to a different size.

You have up to 8 colors to choose from to represent differnt tiles on the matrix. (may increase to an unlimited amount in future versions)

You click or use the arrowkeys to fill out the grid with the matrix design you want.

When you've finished designing select whether you want a series of unseparated numbers produced (for a map file) or wether you want it to produce a data statement (for use in dbpro editor).

E.g. a matrix of size 4*4 that was coloured totaly in red would produce a data statement like this. (red has the value 2)

DATA 2,2,2,2
DATA 2,2,2,2
DATA 2,2,2,2
DATA 2,2,2,2

lets say you had one that was all red except for the top row which has 3 green tiles would read this (green is value 3)

DATA 3,3,3,2
DATA 2,2,2,2
DATA 2,2,2,2
DATA 2,2,2,2

You then run a little routine like this to read off the data and produce the matrix you want in your game


for tt=0 to 59
for t=0 to 59
read a#
if a#=3 then tile#=1
if a#=2 then tile#=2
set matrix tile 1,t,tt,tile#
next t
next tt
update matrix 1



The file comes with its own installation wizard so you dont have to arse about with files and is only 136k to download


and it is definatly available at the following site

http://gaming.nsoptimum.co.uk/makoangel/MTDSetup.exe

With special thanks to makoangel for posting my program up as my host wont let me upload exe's.
The above is where to get the program
The below is my web site if you wana visit it

http://www.darkdayssoftware.tk


heres a 31k screen shot of the editor.




Any comments or questions to the forum on my site or here
so wada ya think

Thanks everybody.
Special thanks to Hammish McHaggis for BETA testing this program

Reset
Terabyte
21
Years of Service
User Offline
Joined: 28th Dec 2002
Location: UK
Posted: 28th Jun 2003 19:51 Edited at: 28th Jun 2003 20:42
Known Issues

It takes a while to load
Yes it does apx 10 seconds

The data statemnt it produces looks funny
Yes, but when you copy and paste it into dbpro it looks fine

Is it actually converting it?
Although when you click convert it doesnt let you know it is actually converting it. The progress bars at the top will let you know and it usually takes about 30 seconds to convert.

It produces numbers...but no data statments.
Dont forget to check the CREATE DATA STATEMENT box in order to produce a data statment otherwise it will produce data for a map file i.e. without commas or DATA on each line.

No other issues have been submited yet. please let me know if you have any

Reset
Terabyte
21
Years of Service
User Offline
Joined: 28th Dec 2002
Location: UK
Posted: 28th Jun 2003 20:31 Edited at: 28th Jun 2003 21:00
oh dear.
it appears there was a file missing.

I fixed it now

It should download and work perfectly now

could you reply to this thread if you download it just to get an idea of how popular it is

Reset
Hamish McHaggis
21
Years of Service
User Offline
Joined: 13th Dec 2002
Location: Modgnik Detinu
Posted: 28th Jun 2003 21:04
Lol! Special thanks, me! I see that you got the carrage return in text boxes working, does it make the data statements the right length and everything?

cuRant PRogekt: a three-de map editer
Why the hell'd you ask me for crying out loud!?!
Athelon XP 1400 Plus - Nvidia Geforce MX400 - 256mb RAM
Terabyte
21
Years of Service
User Offline
Joined: 28th Dec 2002
Location: UK
Posted: 28th Jun 2003 22:42
it does sorta do it
you actually see the carrage return and the next word so it looks like this

0,0,5,2,0,0,0,0,0,0,0[] DATA
0,2,3,4,5,2,3,2,4,3,5[] DATA
but luckily when you copy and paste it into dbpro it goes back to normal i.e.

data 0,0,5,2,0,0,0,0,0,0
data 0,2,5,4,2,1,3,3,1,3

so erm
partial solution

Reset
Hamish McHaggis
21
Years of Service
User Offline
Joined: 13th Dec 2002
Location: Modgnik Detinu
Posted: 29th Jun 2003 03:01
cool

cuRant PRogekt: a three-de map editer
Why the hell'd you ask me for crying out loud!?!
Athelon XP 1400 Plus - Nvidia Geforce MX400 - 256mb RAM
FiShFuN4eVeR
21
Years of Service
User Offline
Joined: 2nd Feb 2003
Location: Netherlands
Posted: 1st Jul 2003 14:46
Does it work in DB Classic?

Lets make free games!
Download them at www.fishsoft.tk
Terabyte
21
Years of Service
User Offline
Joined: 28th Dec 2002
Location: UK
Posted: 11th Jul 2003 22:22
indeed it does
it works with any program that uses data statements

Reset
Hamish McHaggis
21
Years of Service
User Offline
Joined: 13th Dec 2002
Location: Modgnik Detinu
Posted: 11th Jul 2003 22:49
I have a way of getting multiple lines in textboxes Frobscottle...

Make a form with a button, and two text boxes. Put this command in...

Private Sub Command1_Click
'Define variables
Dim CarrRet
Dim String1 as String, String2 as String
'Assign a carrage return variable
CarrRet = Chr$(13) + Chr$(10)
'Store text box string in variable
String1 = Text1.Text
'Put text1 value in text2 value 1 character at a time, putting carrage returns where spaces are
For l = 1 to len(String1)
If Mid$(String1, l, 1) = " " then String2 = String2 + CarrRet
String2 = String2 + Mid$(String1, l, 1)
Next l
'Put new string in text2
Text2.Text = String2

This example is putting carrahe returns where spaces are, but you can adapt it.

cuRant PRogekt: a three-de map editer
Why the hell'd you ask me for crying out loud!?!
Athelon XP 1400 Plus - Nvidia Geforce MX400 - 256mb RAM
progamer
20
Years of Service
User Offline
Joined: 25th Jun 2003
Location: Belgium
Posted: 31st Jul 2003 12:56
Is it possibel to convert it to dbc??

first: live, program, game, and then gosub whithout return.
Ermes
20
Years of Service
User Offline
Joined: 27th May 2003
Location: ITALIA
Posted: 31st Jul 2003 14:07 Edited at: 31st Jul 2003 14:09
're sure this isn't a "sphere on a matrix db example"???

All who make a matrix use a system like that.
Data statments work for this, in all basic you know.
"Matrix" is a bidimensional array, you can descrive it as
VariableMatrix(x,z).in each cell, there's the number of your tile.
so data will works like the rappresentation of your matrix array.

data 1,4,5,5,5,3
data 7,8,16,5,5,3
data 1,6,5,5,5,3
data 1,4,5,5,5,3
data 3,3,3,3,3,3
data 1,4,5,5,5,3

for x=1 to 6
for z=1 to 6
read tile
VariableMatrix(x,z)=tile
next z
next x


this read your variable.
next pass:

for x=1 to 6
for z=1 to 6
set matrix tile matrixnumber,x,z,VariableMatrix(x,z)
next z
next x
update matrix matrixnumber

this edit your matrix.
you didn't need an editor for such small/ medium matrix.
the crap is edit the eight of the matrix with data statments!!!

Free Download for a Free World

Login to post a reply

Server time is: 2024-03-29 10:30:45
Your offset time is: 2024-03-29 10:30:45