Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - KrazyK

Pages: 1 2 3 4 5 6 [7] 8 9 10 11 12 13 14 ... 18
121
I know the original music came from the game Thrust but i'm not sure which demo it was in.  Time to start delving... :)

122
Purebasic / Sync - Fire and Forget Cracktro remake
« on: March 19, 2018 »
Just found this group last week so I decided to do one of their cracktros.  It seemed like a simple straightforward one at first but the font took a bit of ripping along with the scrolltext as it was hidden/crypted.  Finally got the raster bars routine cracked after a little bit of head scratching too.
This one took me a day from start to finish unlike a few other s where i've been on for days and days.

Full source included here including my custom Transparent image drawing library for x86 & x64.

This code though will only work with an x86 version of PureBasic 5.x due to the x86 OSME library.

Enjoy



123
Purebasic / Re: [Retroremake] Amstrad CPC for fun
« on: March 04, 2018 »
Nice work padman.  And here's the memory loaded dll version for a single exe file.  Added and changed a few lines to keep the window on top, hide the cursor and stop the crashing when clicking outside the window.  Still only x86 as Padmans says as there's no x64 dll.




124
Purebasic / Re: Star Wars Scroller / Crawler
« on: January 23, 2018 »
Ah crap!. 
I'll go back through and make sure all variables are doing what they're supposed to be doing! This may take some time.  Now 3 machines i've tested all appear to work fine.  Argghhh...
 ::)

125
Purebasic / Re: Star Wars Scroller / Crawler
« on: January 22, 2018 »
Hi ttemper, the compiled  exe should work on x64 too.  I guess not on yours though.
I've tried it on two  machines here.  x64 laptop with intel gfx, x64 pc with nvidia gfx.
What happens when you run the example code after copying the x64 library over?
Try changing the screen dimensons and post a screenshot. The screen height must be at least 200px.  Try 1600x900 as that look kinda nice.
Try installing the starwars.ttf font attached here in the zip to see if that makes any difference.

126
Purebasic / Re: Star Wars Scroller / Crawler
« on: January 19, 2018 »
Here's the first version of the x86 library compiled using 5.61.  Don't use it on x64 as it will not work.
I've tried to make it a simple as possible to use and only has 2 commands:

Crawler_Init & Crawler_Go
See the example for further details.

I've  included a small example which i'm sure can be added to for the full intro effect.

Edit:
New version 1.01 with a few extra parameters for x86 and x64

Also included is a nearly finished intro.




127
Purebasic / Star Wars Scroller / Crawler
« on: December 21, 2017 »
Has anyone ever managed to do a decent Star Wars scroller/crawler in PB without using the 3D engine or any other 3rd party 3D libraries like MP3D or Epyx?
I tried ages ago and failed but having been inspired by the latest movie release i've tried again and think I may have cracked it this time.  It's still early but it's working very smoothly and without and 3D libraries, just standard PB calls.  I'll make it into library and add a piece of test code when I have a bit more time as it's just an initialization call with the text address, width and height of the screen then a call from within the main loop to keep it going.
Quick screenshot of work in progress.

128
I don't have the Epyx library set up on my PC anymore so I can't test your code but here's the starfield canvas library attached with you previous modified code as an example.
Just rem out the bits you want for either 2D or 3D.

Put the library in your purelibraries\userlibraries folder and restart the compiler.

It's just a case of creating a canvas gadget and specifying the number of stars and the speed.  The starfield routine runs in a thread so it never disappears when you drag the window around or open a file requester.

I do see a problem if you release our patcher though.  You will have to distribute the fmod dlls  with the exe. 
You could use the built in PB commands though to use the Modplug format files like XM.




Code: [Select]


Enumeration
  #wmain
EndEnumeration

Define szFile.s
Define Text_offsetV.i

InitSprite()

OpenWindow(#wmain,150,50,500,360,"Single .EXE Dynamic patcher Jmg@2017 Esc to quit", #PB_Window_ScreenCentered)
SetWindowColor(#wmain,RGB(14, 10, 100))
StickyWindow(#wmain,1)


Text_File = TextGadget(#PB_Any, 150, 15, 290, 20, "", #PB_Text_Border)
Text_f1= TextGadget(#PB_Any, 50, 20, 30, 20, "File")
SetGadgetColor(Text_f1,#PB_Gadget_FrontColor,RGB(154, 154, 154))
SetGadgetColor(Text_f1,#PB_Gadget_BackColor,RGB(14, 10, 100))

Text_offsetC= TextGadget(#PB_Any, 50, 50, 90, 20, "Decimal Offset :")
SetGadgetColor(Text_offsetC,#PB_Gadget_BackColor,RGB(14, 10, 100))
SetGadgetColor(Text_offsetC,#PB_Gadget_FrontColor,RGB(154, 154, 154))

Text_offsetV= EditorGadget(#PB_Any, 150, 45, 90, 20)

Text_valueC=TextGadget(#PB_Any, 50, 80, 90, 20, "Decimal Value :")
SetGadgetColor(Text_valueC,#PB_Gadget_BackColor,RGB(14, 10, 100))
SetGadgetColor(Text_valueC,#PB_Gadget_FrontColor,RGB(154, 154, 154))


Text_valueV =EditorGadget(#PB_Any, 150, 75, 90, 20)
Button_SelectFile = ButtonGadget(#PB_Any, 50, 320, 140, 20, "Select File")
Button_PatchFile = ButtonGadget(#PB_Any, 310, 320, 140, 20, "Patch File")



Procedure.l Patch(file.s,location.l,byte.b)
  If OpenFile(0,file)
    FileSeek(0,location)
    WriteData(0,@byte,1)
    CloseFile(0)
    ProcedureReturn 1
EndIf
EndProcedure


;-=======================  Starfield Code ====================================================
Procedure Draw_Threaded(T)
  Repeat
   ;KK_DrawStars2D(0.05)    ;minus =left
   KK_DrawStars3D(-0.05)   ;-only use minus values for 3D
   
  ForEver
EndProcedure

canvwidth=480
canvheight=180
CanvasGadget(1,10,120,canvwidth,canvheight)

;KK_InitStars2D(250,1)                      ;-number of 2D stars
KK_InitStars3D(1000,1)                      ;-number of 3D stars, canvas number
CreateThread(@Draw_Threaded(),0)    ;-draw it inside a thread.  You can use BindEvent but it does flicker a bit.
 

;-==========================================================================

Repeat
Delay(1)          ;-give some time back to other windows.

  Select WindowEvent()
     
Case #PB_Event_Gadget
      Select EventGadget()
         
Case Button_SelectFile
          szFile = OpenFileRequester("Select file to patch", "", "*.*", 0)
          If szFile
            SetGadgetText(Text_File, szFile)
Else
EndIf
         
         
Case Button_PatchFile     
          offValue=  Val(GetGadgetText(Text_offsetV))
          byteValue = Val(GetGadgetText(Text_valueV))
          Patch(szFile, offValue, byteValue )
          MessageRequester("Info"," File patched successfully ! ...")
         
         
EndSelect
EndSelect
 
Until GetAsyncKeyState_(#VK_ESCAPE) 




129
You can probably use the graphics command (not sure on MAC ) but not the sndh replay as that windows only.  Try taking out the sndh replay bits and see what happens.

130
Hi waste,
What version of PB are you using as I have a custom 2D / 3D starfield library that you can draw on a canvas gadget?
You don't need to use the Epyx FX library with this library.

It's only for x86 at the moment but I can easily recompile it for x64.

Attached is your compiled code with both variations. 
I can put tegether a sample piece of code if you want to use it.

 ;)



131
Projects / The Fingerbobs - Ripped Off 87 remake
« on: August 26, 2017 »
Here's a quick remake i've just discovered by The Fingerbobs from 1991.  Watched the little man for ages on this animation and still cant's figure out where it starts !
 :)


132
Projects / Re: Back once again...
« on: August 06, 2017 »
Thanks guys.  I've re-compiled it now and it doesn't lose focus and crash.  :cheers:


133
Projects / Re: Back once again...
« on: May 25, 2017 »
Sweet ! :updance:

134
Projects / Re: Back once again...
« on: May 24, 2017 »
Hi rbz,
Thanks for uploading the latest one for me.
The rest are not on RR yet......but, if you're feeling bored though......  ;D




135
Projects / ...it's been a while...
« on: April 28, 2017 »
Long time since a I coded anything so I turned on the laptop this week and found another remake to do just to keep my brain firing.
It's a relatively simple one from Lightnings consisting of the following:

3 different size scrolltexts
Info text in the top raster controllable by UP/DOWN arrows.
Raster VU bars
Rasterblinds changing main logo.

Tested on Win32/64

136
Purebasic / Re: PB 5.60 beta 1 on the place
« on: January 28, 2017 »
Nice, I'll take a peek at this later.

137
General chat / Merry Christmas 2016
« on: December 24, 2016 »
I'd like to wish everyone here a very Merry Christmas for 2016.  :xmas:  And in the true spirit of giving, here's a little Christmassy intro I knocked up in the past couple of days.  Have a great time ....and remember, never eat yellow snow !




138
Nice remake. Always good to see someone elses Purebasic code. 
Thanks for posting.

139
Projects / Re: Back once again...
« on: December 11, 2016 »
3 more this time:

A nice big scrolltext from Lemmings and a not so quite as big scrolltext from Elite/Hotline.
And one from bastards International, again, I had never head of them until last week!










140
Purebasic / Re: Stax - Anarchy Intro Source
« on: November 29, 2016 »
Hi,

If i open the .pb file and then it say: it does not support compressed libraries.  OSMELibrary if i copy it to purebasic userlibrary?

Best regards
Speedhead of Mjau64 / Byterapers

Try using PureBasic 5.3 onwards. Windows only though. It works fine up to 5.50 so far.   It is also an x86 library, I didn't make an x64 version, sorry.


Pages: 1 2 3 4 5 6 [7] 8 9 10 11 12 13 14 ... 18