The Game Creators
The Game Creators Home Online Shop Click to Login
  Hot: Christmas CompetitionNovember NewsletterModel Pack 36DB Pro Pack 2009DGS BonanzaCharacter PackFPS Creator Bonanza;
The Game Creators
DBPro / Mini Competition! TGC Prizes!

Go to the first page of this board Return to the Forum Menu Post Message
108 Messages - Page   of 3   
Bookmark and Share Search the Forum Next 40

Author Message
BatVink

TGC Newsletter Editor


Joined: Fri Apr 4th 2003
Location: Chilling
Posted: 20th Sep 2005 06:18     Edited: 25th Sep 2005 14:36     | link | toggle

*********************************************
it looks like you can't use this code from the default editor.
Replace the tutorial source code (code example 2) with the following code which does work.
The code is identical. The comments have been removed, and this fixes the problem!

+ Code Snippet
   global pixpitch
   global maskImage
   maskImage = 100
   global maskMemblock
   maskMemblock = 10

   dim maskStage(255)

   set display mode 800,600,32

   sync on
   SYNC RATE 100
   set text opaque

   loadMask("mask1.bmp",11)

   load image "Image1.jpg", 1, 1
   load image "Image2.jpg",2,1

   make memblock from image 1,1
   make memblock from image 2,2

   lock pixels
   pixpitch =  get pixels pitch()
   unlock pixels


   memblockWipe(1,11)
   delay()
   memblockWipe(2,11)
   delay()
   delay()
   delay()

function memblockWipe(newImage, mask)

      sh = screen height()
      sw = screen width()
      sd = screen depth()
      sb = sw * (sd / 8)

      pointer = 0

      for n = 0 to 255
         lock pixels
         for m = pointer to pointer + (maskStage(n) - 1)
            pixel = memblock dword(mask, m * 4)
            pixelline = pixel / sw
            pixelcolumn = pixel - (pixelline * sw)
            screenPosition = (pixelline * pixpitch) + (pixelcolumn * (sd / 8))
            newImagePosition = (pixelline * sb) + (pixelcolumn * (sd / 8))
            copy memory get pixels pointer() + screenposition, get memblock ptr(newImage) + newImagePosition + 12, sd / 8
         next m

         inc pointer, maskStage(n)
         unlock pixels
         text 5,5, str$(screen fps())
         sync
      next n
      `************************************************************

endfunction


function delay()

   time = timer()
   while timer() < time + 1000
      text 5,5, str$(screen fps())
      sync
   endwhile

endfunction

function LoadMask(image$, memblock)

   load image image$, maskImage, 1
   make memblock from image maskMemblock, maskImage
   delete image maskImage

   make memblock memblock, 480000 * 4

   sb = memblock dword(maskMemblock, 8) / 8
   print "Loading Mask Data (~5 seconds)..." : Sync : Sync

   nextByte = 0
   for n = 0 to 255
      pixelcount = 0
      for m = 0 to 479999
         if memblock byte(maskMemblock, (m*sb) + 14) = n
            write memblock dword memblock, nextByte, (m)
            inc nextByte, 4
            inc pixelCount, 1
         endif
      next m
      maskStage(n) = pixelCount
   next n

endfunction



This competition runs alongside the September Newsletter Tutorial on Memblocks. The closing date is midnight, Friday October 14th 2005.

The Game Creators have kindly donated two prizes for the winners.

The Competition details and prizes can be found in the attached download. In contrast to regular competitions, no coding is necessary, but it is still in the vein of game making. Confused? Download the details and all will be revealed.

*** Competition Instructions ***

* The download is a DB Pro application, illustrating what is required of entrants.

Back to top
The Biglaugh
Download: top_secret.rar Size: 1181659 bytesReport this message as abusive
BatVink

TGC Newsletter Editor


Joined: Fri Apr 4th 2003
Location: Chilling
Posted: 20th Sep 2005 06:21     Edited: 20th Sep 2005 06:23     | link | toggle

The download above is in rar format, 1.5 Megabytes. You can get it in zip format here, 2.5 Megabytes

*** Competition Details, Zip format ***

Back to top
The Biglaugh
Download: top_secret.zip Size: 2633787 bytesReport this message as abusive
BatVink

TGC Newsletter Editor


Joined: Fri Apr 4th 2003
Location: Chilling
Posted: 20th Sep 2005 06:31           | link | toggle

You can post your entries in this thread. To give you a head start, the mask used in the Competition Details program is attached. Take a look and you will very quickly understand how the effect works.

Back to top
The Biglaugh
Download: mask1.jpg Size: 46789 bytes  View Image: mask1.jpg Size: 46789 bytesReport this message as abusive
spooky

User


Joined: Fri Aug 30th 2002
Location: United Kingdom
Posted: 20th Sep 2005 07:16     Edited: 20th Sep 2005 07:20     | link | toggle

Suggest you fix your rar file. It contains a file but with wrong extension. Rename it from .gif to .exe and it works. You fool!

As newsletter has not arrived yet, is there any way your little exe will load a mask if in same directory, so we can test it, or do we just be patient and wait for newsletter!

Boo!
Back to top
www.dbhut.com
Report this message as abusive
BatVink

TGC Newsletter Editor


Joined: Fri Apr 4th 2003
Location: Chilling
Posted: 20th Sep 2005 07:52     Edited: 20th Sep 2005 07:53     | link | toggle

Quote: "Suggest you fix your rar file"
Ho Hum...here's the fixed version! I changed it to email it past an exe-hungry spam catching mail server.

Quote: "...or do we just be patient and wait for newsletter!"
I'm afraid so! Otherwise, you wouldn't need to read the newsletter, or my tutorial

Back to top
The Biglaugh
Download: topsecret.rar Size: 1181659 bytesReport this message as abusive
Nicholas Thompson

User


Joined: Mon Sep 6th 2004
Location: London, UK
Posted: 20th Sep 2005 08:03           | link | toggle

Whats the ETA of the newsletter?

My Website:
Back to top
Thingy ma Jig
Report this message as abusive
Peter H

User


Joined: Fri Feb 20th 2004
Location: Witness Protection Program
Posted: 20th Sep 2005 08:08           | link | toggle

lol, nice music

"We make the worst games in the universe."
Back to top
Report this message as abusive
Sergey K

User


Joined: Sun Jan 4th 2004
Location: Cyberspace
Posted: 20th Sep 2005 08:18           | link | toggle

what is the rules besides of screen size?
can some media b included or something?
or its a work only wirh DBP commands?


BlueLight Online, improved version of MorningOnline
Back to top
Goga\'s WebPage (My Projects)
Report this message as abusive
BatVink

TGC Newsletter Editor


Joined: Fri Apr 4th 2003
Location: Chilling
Posted: 20th Sep 2005 09:19     Edited: 20th Sep 2005 09:20     | link | toggle

Quote: "Whats the ETA of the newsletter?"
That is up to Agent Davey

Quote: "what is the rules besides of screen size? can some media b included or something?
"

The aim is simply to make an 800 x 600 mask, using a graphics program. The tutorial will provide all of the source code you need.

The mask used in the program you downloaded looks like this:



Your mission is to make your own mask to create a different effect.

Back to top
The Biglaugh
Download: mask_sml.jpg Size: 17199 bytes  View Image: mask_sml.jpg Size: 17199 bytesReport this message as abusive
Sergey K

User


Joined: Sun Jan 4th 2004
Location: Cyberspace
Posted: 20th Sep 2005 09:22           | link | toggle

and how do i have to give it to u? exe or source code?


BlueLight Online, improved version of MorningOnline
Back to top
Goga\'s WebPage (My Projects)
Report this message as abusive
TKF15H

User


Joined: Sun Jul 20th 2003
Location: Rio de Janeiro
Posted: 20th Sep 2005 09:28           | link | toggle

Does the code have to act exactly the same way, or can we do a few modifications? I'd like to add blending if I can get it to be fast enough.

WarBasic Scripting engine for DarkBasicPro
DC emulator code size: 14.3MB, 553,214 lines
Back to top
BitGnosis Find user on ICQ
Report this message as abusive
Darkbasic MADPSP

User


Joined: Wed Jun 15th 2005
Location: Uk
Posted: 20th Sep 2005 09:35           | link | toggle

Count me in Please can you tell me what the prize is dbc? gamespace?

New game about to be unleashed steal un theif
Back to top
It\'s a link click it lol
Report this message as abusive
TKF15H

User


Joined: Sun Jul 20th 2003
Location: Rio de Janeiro
Posted: 20th Sep 2005 09:40           | link | toggle

FPSCreator or whatever enhancement pack (DBP plugin) made by TGC.

WarBasic Scripting engine for DarkBasicPro
DC emulator code size: 14.3MB, 553,214 lines
Back to top
BitGnosis Find user on ICQ
Report this message as abusive
Darkbasic MADPSP

User


Joined: Wed Jun 15th 2005
Location: Uk
Posted: 20th Sep 2005 09:41           | link | toggle

wow fpsc!!!

New game about to be unleashed steal un theif
Back to top
It\'s a link click it lol
Report this message as abusive
Me!

User


Joined: Tue Jul 26th 2005
Location: Cyberspace
Posted: 20th Sep 2005 09:42           | link | toggle

@Darkbasic MAD: why don`t you download the exe and run it?, like the man said, you need it anyway to enter, the program tells you what the prizes are when you run it.



the average IQ is 100...but the people that took the test where trying to look smart. most people don`t go over 50.
Area 51?, I`m more intrested in what they have in areas 1 to 50
Back to top
Report this message as abusive
Darkbasic MADPSP

User


Joined: Wed Jun 15th 2005
Location: Uk
Posted: 20th Sep 2005 09:44           | link | toggle

cool it thought it was a program that told you what the prizes are and that's it =

New game about to be unleashed steal un theif
Back to top
It\'s a link click it lol
Report this message as abusive
BatVink

TGC Newsletter Editor


Joined: Fri Apr 4th 2003
Location: Chilling
Posted: 20th Sep 2005 09:51           | link | toggle

Quote: "and how do i have to give it to u? exe or source code?"

You simply need to post your image file in this thread. The tutorial source code will allow everybody to see your transition mask in action. In fact, I'll create a slightly modified version after the newsletter that will make it easier to run any mask.

If you want to post source code or a full project that shows off your work in a better way, then that would be good. BUT it must use the same transition function, that cannot be altered. You must also post the code, not just an exe, to show it is using the transition function. And in the spirit of this competition, any source posted will be free to use by anyone.

Quote: "Does the code have to act exactly the same way, or can we do a few modifications? I'd like to add blending if I can get it to be fast enough"

The transition must be the same for the competition. But if you want to improve the code once you have downloaded it from the newsletter, it would be welcomed in this thread as an extra resource. The code can be improved, as you will see. Because of the speed it is capable of, there is plenty of room for additional effects and calculations every cycle

Back to top
The Biglaugh
Report this message as abusive
Hawkeye

User


Joined: Fri Sep 19th 2003
Location: SC, USA
Posted: 20th Sep 2005 10:13           | link | toggle

Quote: " FPSCreator or whatever enhancement pack (DBP plugin) made by TGC."
Meh. No way I want either of those, would much rather have one of the dbp plugins instead... but... I may try to enter anyways.

Back to top
provosmusic.com
Report this message as abusive
Nicholas Thompson

User


Joined: Mon Sep 6th 2004
Location: London, UK
Posted: 20th Sep 2005 10:40           | link | toggle

@Batvink - it looks like the transition is based on a threshold, like you start counting up and the mask is only drawn if the greyscale value is above the threshold counter at that moment.

Would it be possibel for this to be done more like some kind of multiplier of the alpha or something to make it a more smooth transition?

My Website:
Back to top
Thingy ma Jig
Report this message as abusive
BatVink

TGC Newsletter Editor


Joined: Fri Apr 4th 2003
Location: Chilling
Posted: 20th Sep 2005 11:04           | link | toggle

Quote: "Would it be possibel for this to be done more like some kind of multiplier of the alpha or something to make it a more smooth transition?"

Absolutely. By my calculations, you could have 4 alpha "waves" with no performance degrade. But the approach would be different. Wait until the newsletter, and see what you can do with it.

Back to top
The Biglaugh
Report this message as abusive
Google Ad
Back to top
 
Sergey K

User


Joined: Sun Jan 4th 2004
Location: Cyberspace
Posted: 20th Sep 2005 12:38           | link | toggle

wait wait, so i can make ANY transition animation i want, only with the dbp commands, do i get it right?
if so, then count me in.. i wanna try to win the "enhancement pack" (dont care about the FPS creator actualy.. )


BlueLight Online, improved version of MorningOnline
Back to top
Goga\'s WebPage (My Projects)
Report this message as abusive
Nicholas Thompson

User


Joined: Mon Sep 6th 2004
Location: London, UK
Posted: 20th Sep 2005 13:03           | link | toggle

I'm gonna wait for the newsletter

My Website:
Back to top
Thingy ma Jig
Report this message as abusive
Ric

User


Joined: Sun Jul 11th 2004
Location: object position x
Posted: 20th Sep 2005 14:30           | link | toggle

Cool idea to make the newsletter tutorials interactive! And prizes too - this is great! Just one question - how many entries are we allowed each - just the one ...... or hundreds?

Back to top
Andromedus.com
Report this message as abusive
Darkbasic MADPSP

User


Joined: Wed Jun 15th 2005
Location: Uk
Posted: 20th Sep 2005 14:50           | link | toggle

I'm dead

New game about to be unleashed steal un theif
Back to top
It\'s a link click it lol
Report this message as abusive
BatVink

TGC Newsletter Editor


Joined: Fri Apr 4th 2003
Location: Chilling
Posted: 20th Sep 2005 15:37           | link | toggle

Glad you like the idea, Ric. I thought graphical "gimmicks" would be your thing

Quote: "how many entries are we allowed each - just the one ...... or hundreds?"

Multiple entries allowed. I would try and make them different though, no mass-production of slightly different designs.

If there are several similar entries from different people, I guess it will have to be on a first-come, first-served basis.


*** Please Note! You are designing the Mask (the 800 x 600 greyscale image), NOT the code!
The code will be provided in the tutorial. It sounds like some people are a little confused over this point.

Back to top
The Biglaugh
Report this message as abusive
David T

Moderator


Joined: Tue Aug 27th 2002
Location: England
Posted: 20th Sep 2005 16:12           | link | toggle

App freezes here on the loading screen?

"A book. If u know something why cant u make a kool game or prog.
come on now. A book. I hate books. book is stupid. I know that I need codes but I dont know the codes"
Back to top
DavidTattersall.Me.uk
Report this message as abusive
Ric

User


Joined: Sun Jul 11th 2004
Location: object position x
Posted: 20th Sep 2005 17:19           | link | toggle

Quote: "App freezes here on the loading screen?"

Including the music?

Back to top
Andromedus.com
Report this message as abusive
spooky

User


Joined: Fri Aug 30th 2002
Location: United Kingdom
Posted: 20th Sep 2005 17:32           | link | toggle

I found a way to test masks by modifying your exe...

So, here is my first compo entry in a rar file 325 Kb

Probably jumping the gun a bit, but what the hell!

Boo!
Back to top
www.dbhut.com
Download: mask.rar Size: 332905 bytesReport this message as abusive
sett

User


Joined: Sun Sep 19th 2004
Location: somewhere in my mind...
Posted: 20th Sep 2005 19:09           | link | toggle

Im in too. I want to try myself and to win something...

Windows XP,pentium IIII, 1,9 MGZ, 256 mb memory, 128 mb video card ATI Radeon 9200 se s80 'sett squadron back on the assault'
Back to top
Report this message as abusive
Xolatron old

User


Joined: Sun Jan 25th 2004
Location: The Star Forge Language: DBpro
Posted: 20th Sep 2005 20:47           | link | toggle

Rats, I can't run the EXE because I'm on the old WinME max 24-bit display machine... uggh.

It's helpful when people at least add support for 16-bit display, even if 32-bit is also supported.

And yes, modifying the EXE to use a diff image shouldn't be hard. Search in notepad (rename EXE to TXT) tfor one of the words the p-rogram shows you, then look around for an image filename .

-Xol


DBpro IonRay IDE: Demo 0.1.0.0 available!
Back to top
IonRay IDE Beta Thread
Report this message as abusive
Torrey

User


Joined: Fri Aug 20th 2004
Location: Ohio
Posted: 20th Sep 2005 22:28           | link | toggle
Back to top
Blackgate.us Send AIM user a message
Report this message as abusive
Nicholas Thompson

User


Joined: Mon Sep 6th 2004
Location: London, UK
Posted: 21st Sep 2005 03:13           | link | toggle

Those are NICE!!

Ric, just out of interest - why do we have to wait? Why cant you release an EXE for this now? Surely the longer we get, the more/better the entries will be?! Or is this Agent Davey's ruling?

My Website:
Back to top
Thingy ma Jig
Report this message as abusive
BatVink

TGC Newsletter Editor


Joined: Fri Apr 4th 2003
Location: Chilling
Posted: 21st Sep 2005 05:27     Edited: 21st Sep 2005 05:29     | link | toggle

Quote: "Why cant you release an EXE for this now?"

Don't blame Agent Davey

The competition is based on the memblock tutorial in the newsletter. You'll get the code, the tutorial and a bucket full of inspiration.

Already having the code to test them myself, I can tell you that Spooky and Torrey have done a nice job! Have a look at their contributions, they work really well. In fact, my first reaction was... "Woooahhhhhh!"

Back to top
The Biglaugh
Report this message as abusive
Nicholas Thompson

User


Joined: Mon Sep 6th 2004
Location: London, UK
Posted: 21st Sep 2005 05:47           | link | toggle

I cant modify the EXE :-(

My Website:
Back to top
Thingy ma Jig
Report this message as abusive
Torrey

User


Joined: Fri Aug 20th 2004
Location: Ohio
Posted: 21st Sep 2005 06:29     Edited: 21st Sep 2005 08:26     | link | toggle

Quote: "I cant modify the EXE :-("

Use one of the_winch's tools for editing DBP .exe's.

http://winch.pinkbile.com/

Quote: "Surely the longer we get, the more/better the entries will be?! "

Surprisingly, getting a decent effect isn't as easy as it looks. I went into this thinking I could create some really neat stuff very fast, but after testing the masks created it didn't always work out.

The best audio plugin for DarkBASIC Pro!
Plays Ogg Vorbis,MP3,FLAC,uncompressed WAV,AIFF,MOD,S3M,XM,and IT files.
Back to top
Blackgate.us Send AIM user a message
Report this message as abusive
Hamish McHaggis

User


Joined: Fri Dec 13th 2002
Location: Modgnik Detinu
Posted: 21st Sep 2005 11:55           | link | toggle

Quote: "I cant modify the EXE :-("

Make your own screen transition code then, like I did . I'm looking forward to seeing what techniques Batvink used in his, and how it compares to my first attempt . However, I'm crap at making the transition bitmaps.

Back to top
BlackOut Open Source FPS
Report this message as abusive
Hamish McHaggis

User


Joined: Fri Dec 13th 2002
Location: Modgnik Detinu
Posted: 21st Sep 2005 14:19     Edited: 21st Sep 2005 14:23     | link | toggle

Hehe, check out this...

Back to top
BlackOut Open Source FPS
Download: mask1.rar Size: 616002 bytesReport this message as abusive
BatVink

TGC Newsletter Editor


Joined: Fri Apr 4th 2003
Location: Chilling
Posted: 21st Sep 2005 16:02           | link | toggle

Another fantastic one That one hurts my eyes

It's going to be hard to judge this compo, and it hasn't actually got started yet!

Back to top
The Biglaugh
Report this message as abusive
Phaelax

User


Joined: Wed Apr 16th 2003
Location: Ohio
Posted: 21st Sep 2005 19:41           | link | toggle

Why are these instructions compiled into an exe? Why are you the one who has them? Why aren't they posted on TGC's site?

Deadly Night Assassins
Back to top
Zimnox Find user on ICQ Send AIM user a message
Report this message as abusive
BatVink

TGC Newsletter Editor


Joined: Fri Apr 4th 2003
Location: Chilling
Posted: 22nd Sep 2005 02:54           | link | toggle

Quote: "Why are these instructions compiled into an exe?"
Because it demonstrates what you need to do.

Quote: "Why are you the one who has them?"
Because I devised the competition, and made the program

Quote: "Why aren't they posted on TGC's site?"
Because it's only a small competition, TGC very kindly donated the prizes because it's linked to the newsletter. You will see it mentioned in the Newsletter if you are concerned abiout the authenticity of the exe and the prizes.

If you don't want to download the program, here's a summary of what you need to do...

Quote: "A Transition Mask is an 800 x 600 greyscale image.
When overlaid on your game screen, it will reveal
the next image according to the pattern on the mask.

In simple terms, the black pixels will disappear first,
followed by each level of grey, finally through to white.

+++++++++++++++++

...you must create the most inspiring Transition Mask. You will
find examples with the September Tutorial. You will
also find the essential source code required to run
it, along with details on how this code was designed.

+++++++++++++++++

1. Your design must be 800 x 600, greyscale.

2. It must be a generic design. That is, it cannot be
specific to a project, it must be suitable for any
project or game.

3. All submitted masks will be freely available for all
to use.

4. You may include additional images to demonstrate your
transition to it's best effect."

Back to top
The Biglaugh
Report this message as abusive

Go to the first page of this board Return to the Forum Menu Post Message
108 Messages - Page   of 3   
Search the Forum Next 40

This is a multi-page thread older than 30 days.
Go to the last page to check if you can reply to it.

Forum Search

Enter a word or phrase to search our Forum for:

Thread Subject Search
Search Phrase:
Search Scope: Entire forum
Just this board
 
Google Forum Search
Search Phrase:
 
Apollo v2.02


Game Creator Store
Privacy Policy AUP Top of Page