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 - Craz1000

Pages: [1] 2 3 ... 8
1
Programs / Re: Master Sword v1.2
« on: December 19, 2021, 07:12:01 pm »
I completely redid the controller code. This should work better.

2
Programs / Re: Master Sword v1.1
« on: December 19, 2021, 01:12:11 pm »
Cobalt. Just curious set your dead zone to -128 see if that works.

3
Programs / Re: Master Sword v1.1
« on: December 17, 2021, 02:34:36 pm »
you could allow controllers with various button counts by using this to select what button to use for what:
Code: QB64: [Select]
  1.    
  2. FOR i%% = 1 TO _LASTBUTTON(C.Control_Pad)
  3.  IF _BUTTON(i%%) THEN Bselect%% = i%%: i%% = _LASTBUTTON(C.Control_Pad) + 1
  4. NEXT i%%
  5.  

then you assign that button to the control, and it wont matter if they have 4 buttons or 24 buttons.
say you picked the controller button to be used for 'A' assign:Controller.A = Bselect%%

and I'm not sure if STRIG() will pull it off anyway looking at the WIKI page. based on the following line from the WIKI
"Odd devices use 0, 1, 4, 5, 8 and 9 and Even devices use 2, 3, 6, 7, 10 and 11 as first parameters with device number following."
(you were using 0,4,8; all inline with an Odd device number)

So I don't know if my button 2 or 10 would even work with STRIG() as my controller is an odd device number(reported as 3)
I would have recommended using _BUTTON() instead.
And I don't think you can assign the Dpad buttons correctly for the same reason.
Even though my Dpad returns as 2 axis, it only returns 3 values for each axis -1,0,1 that is it.

And custom keyboard controls could be done in a similar manor, you have a menu where the player selects what button they want to customize then you get what they pressed and assign it for that button.

Looking at the code it doesn't appear that it would be too terribly hard to swap out STRIG for _BUTTON, and probably STICK for _AXIS, but then I haven't looked through that much.

Now I know the keyboard controls I will see about giving it a run though!

how my computer registers the 4 buttons on the controller.

Gotcha. Good luck. The game is crazy hard using the keyboard. ill see if i can pick up a cheap controller at the store and play with it.

4
Programs / Re: Master Sword v1.1
« on: December 15, 2021, 04:04:56 pm »
I believe this will work, maybe lol?  Sorry I really wish I had more than one controller available to me.

5
Programs / Re: Master Sword v1.1
« on: December 15, 2021, 03:35:24 pm »
Cobalt

Battle Theme 1 was supposed to be removed. That track is not used which is why I never took down the 320k encoding.

Keyboard is the normal W,A,S,D with Q=B and E=A, TAB=Select, Enter=Start on the NES controller..
As far as the screen, everything is built around that specific resolution. I can put in a _FULLSCREEN if that will help maybe?

I would love to support more that a PS4 controller but that is all i had available to me to test and play with. Not sure how the others work but I can def add support for them
if i can get an idea how the D-Pad is translated. On the PS4 controller the DPad is not picked up at all so I ignored it.



6
Programs / Re: Master Sword v1.1
« on: December 15, 2021, 03:22:28 pm »
all I had is a ps4 controller laying around so the controller code was built around that. it shouldn't be too difficult to change it around. so the dpad itself falls under an STRIG event i presume?

7
Programs / Master Sword v1.2
« on: December 13, 2021, 12:58:44 am »
Has some bug fixes and the open source version now has access to the score sever for you speed runners.

Just as a note, this was built in QB64 v1.5 as this was the current version when development started. v2.0 does not seem to work right with this game.

EDIT:
Based on the comments I redid the controller code. This should work better now.

8
QB64 Discussion / Framerate issue
« on: November 05, 2021, 10:26:50 pm »

So while working on Stereospace 3 using QB64 2.0 I noticed I was only getting 29FPS. I was confused because at this point the game is barely drawing any sprites to the screen. And with Stereospace 2 and Master Sword which is way more demanding I was maxing out '_LIMIT 60'.

So i went back to QB64 1.5 and got 29 FPS. QB64 1.4 got me 29 as well. 1.3 hits the limit at 60.

Anyone else  run into this?


9
Programs / Re: Stereospace 3 Teaser
« on: October 16, 2021, 10:31:55 pm »
If i am understanding the question correctly, the starfield only does that during certain parts of the song.
The asses are from Stereospace 2. Still unsure what will be reused.

10
Programs / Re: Stereospace 3 Teaser
« on: October 16, 2021, 10:11:34 pm »
This seems to be a re-occurring theme for me. ARGH.

Here are the missing files. Added them to the original post as well. I am a mess i swear LOL.

11
Programs / Stereospace 3 Teaser
« on: October 16, 2021, 08:50:44 pm »
 This is a concept demo for background and effects. Those of you who loved Stereospace 2 can see where this is going :).

 


12
Programs / Re: Honeypot program
« on: September 24, 2021, 11:39:21 am »
You are dead on. These are called Honeypots because they are just that, a trap. I wrote this to gather ip addresses of people scanning my server at the front end, and automate adding these ips to the firewall so i dont have to spend time rummaging through the logs.

13
Programs / Re: Honeypot program
« on: September 23, 2021, 06:48:43 pm »
Port 23 is the most scanned port in existence. Every port scanner will ping it. So if you for example are running a server at the front of your network you can use this to gather the IP address of people either scanning your network or straight attempting to telnet in. Naturally you would want to block these address with your firewall.

This program simply automates this process. This is how most honeypot type programs work.
Is this useful for the average user, absolutely not. It is only useful to those who run a windows machine at the edge of their network.

14
Programs / Honeypot program
« on: September 23, 2021, 11:29:33 am »
This program will listen on port 23. On a connection it will store the IP, then disconnect. once 50 unique IPs are recorded it will create a firewall rule in windows firewall. Rinse and repeat.

15
Programs / Re: Master Sword finally done
« on: August 08, 2021, 01:10:58 pm »
It has been some time since this was released. Any gripes or anything i should have done differently on this before i start on the next game? I know it is pretty heavy code wise.

Pages: [1] 2 3 ... 8