Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by EternallyCurious. 04/25/24 10:20
Trading Journey
by howardR. 04/24/24 20:04
M1 Oversampling
by Petra. 04/24/24 10:34
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
Scripts not found
by juergen_wue. 04/20/24 18:51
zorro 64bit command line support
by 7th_zorro. 04/20/24 10:06
StartWeek not working as it should
by jcl. 04/20/24 08:38
folder management functions
by VoroneTZ. 04/17/24 06:52
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
5 registered members (AndrewAMD, TipmyPip, VoroneTZ, Quad, 1 invisible), 688 guests, and 11 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Mega_Rod, EternallyCurious, howardR, 11honza11, ccorrea
19048 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 3 1 2 3
Keys Potential Bug #450589
04/19/15 06:09
04/19/15 06:09
Joined: Apr 2005
Posts: 1,988
Canadian, Eh
DLively Offline OP
Serious User
DLively  Offline OP
Serious User

Joined: Apr 2005
Posts: 1,988
Canadian, Eh
I'm sure this is a bug, because I just tested it with other buttons and it works fine, (And what I'm doing should be do-able) so:

I am making use of WASD, and CUL CUR CUU CUD for primary movement keys (Different combinations have different effects) so when I am pressing key_s and key_cud at the same time, the keys work together. then while still holding those keys(S and CUD) I try to press A and CUR, but they will not work at the same time. Examples:

Code:
#include <acknex.h>
#include <litec.h>
#include <default.c>

function main(){

	level_load(NULL);
	
	while(1){wait(1);
		
		if(key_s && key_cud && key_a && key_cur) {beep();wait(4);}
		if(key_s && key_cud && key_d && key_cur) {beep();wait(4);}
		if(key_s && key_cud && key_a && key_cul) {beep();wait(4);}
		
		//-- This is the only one that works
		if(key_s && key_cud && key_d && key_cul) {beep();wait(4);}
		
	}	
	
}



Just copy this into a new script, save it as whatever.c and give it a try for yourself.

Last edited by DLively; 04/19/15 06:10.

A8 Pro 8.45.4
YouTube: Create Games For Free
Free Resources: www.CGForFree.com
Re: Keys Potential Bug [Re: DLively] #450594
04/19/15 07:43
04/19/15 07:43
Joined: May 2008
Posts: 2,113
NRW/Germany
alibaba Offline
Expert
alibaba  Offline
Expert

Joined: May 2008
Posts: 2,113
NRW/Germany
I guess you´re working on a Laptop/Notebook, because they have a limitation that you can´t mostly press more than 3 keys at a time. I believe it was because of the port of the keyboard, which did not allow more than 3 key combinations or something.
Some key combinations with more than 3 may work, but they are very rare. So this is not gamestudio related.



Professional Edition
A8.47.1
--------------------
http://www.yueklet.de
Re: Keys Potential Bug [Re: alibaba] #450611
04/19/15 15:30
04/19/15 15:30

M
Malice
Unregistered
Malice
Unregistered
M



+1 confirmed script runs perfectly fine even with my newer laptop, this problem is isolated to your hardware or environment.

Re: Keys Potential Bug [Re: ] #450614
04/19/15 15:42
04/19/15 15:42
Joined: Apr 2005
Posts: 1,988
Canadian, Eh
DLively Offline OP
Serious User
DLively  Offline OP
Serious User

Joined: Apr 2005
Posts: 1,988
Canadian, Eh
Im using a Desktop with windows 7 Home Premium, And it doesnt work on any pcs ive tested it on. Try again? tongue

You should only get a beep on the fourth set of combinations.

Also It works fine with other keys. Those are the only combination it wont work for.

Last edited by DLively; 04/19/15 15:44.

A8 Pro 8.45.4
YouTube: Create Games For Free
Free Resources: www.CGForFree.com
Re: Keys Potential Bug [Re: DLively] #450617
04/19/15 15:50
04/19/15 15:50

M
Malice
Unregistered
Malice
Unregistered
M



Quote:
Try again? tongue

As stated this script works perfect for me.

Re: Keys Potential Bug [Re: ] #450621
04/19/15 16:10
04/19/15 16:10
Joined: Apr 2005
Posts: 1,988
Canadian, Eh
DLively Offline OP
Serious User
DLively  Offline OP
Serious User

Joined: Apr 2005
Posts: 1,988
Canadian, Eh
Thanks Malice laugh

When I have some time, Ill construct something a bit more complex for testing because it should NOT work.

I've tried it on 3 individual pcs (win 7, win 7, and win 8) and get the same results in all aspects of the game on each pc.. You're using a Frisbee, so ill condense my code as soon as I can for debug purposes, and if you have time perhaps you can test it laugh

Last edited by DLively; 04/19/15 16:10.

A8 Pro 8.45.4
YouTube: Create Games For Free
Free Resources: www.CGForFree.com
Re: Keys Potential Bug [Re: DLively] #450622
04/19/15 16:14
04/19/15 16:14

M
Malice
Unregistered
Malice
Unregistered
M



PM me the code when your ready or a dl link for like dropbox, I'll test away.
For now when all 4 button are pressed, there maybe a slight pause however the beep sound with ever combination.

Goodluck
Mal

Re: Keys Potential Bug [Re: ] #450624
04/19/15 16:20
04/19/15 16:20
Joined: Apr 2007
Posts: 3,751
Canada
WretchedSid Offline
Expert
WretchedSid  Offline
Expert

Joined: Apr 2007
Posts: 3,751
Canada
As Alibaba stated, this is not a software limitation but purely a hardware one. The term for this is Rollover.


Shitlord by trade and passion. Graphics programmer at Laminar Research.
I write blog posts at feresignum.com
Re: Keys Potential Bug [Re: WretchedSid] #450625
04/19/15 16:43
04/19/15 16:43
Joined: Mar 2012
Posts: 927
cyberspace
W
Wjbender Offline
User
Wjbender  Offline
User
W

Joined: Mar 2012
Posts: 927
cyberspace
yip was common with low end keyboard hardware aswell , there's also something about the way the keys are wired up all together , some keys can work and others not ,depending on the harware differences sometimes .

if you really want a lot of keys working together and great response , buy a gaming keyboard.

I had one and it was kick ass..

oh yeah here

http://gaming.stackexchange.com/question...-button-presses

Last edited by Wjbender; 04/19/15 16:44.

Compulsive compiler
Re: Keys Potential Bug [Re: Wjbender] #450628
04/19/15 17:52
04/19/15 17:52
Joined: Apr 2005
Posts: 1,988
Canadian, Eh
DLively Offline OP
Serious User
DLively  Offline OP
Serious User

Joined: Apr 2005
Posts: 1,988
Canadian, Eh
Hmm... Well I want the average Joe to be able to play this game... is there no way around this other than purchasing a good keyboard? I think I read in the wiki I may be able to re-arrange my syntax to fix this, but I may have misread that in hopeful thinking..


A8 Pro 8.45.4
YouTube: Create Games For Free
Free Resources: www.CGForFree.com
Page 1 of 3 1 2 3

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1