Search found 121 matches

by bfernhout
Mon Apr 08, 2024 11:30 am
Forum: Bugs - Windows
Topic: [Done] Sound channel not working properly
Replies: 10
Views: 360

Re: Sound channel not working properly

to infratec Dont be so downwards. You know i used the constand numbers to, for the sound and more. I followed all the rules. But I got back for every channle an channle number 2. But if you had think a little bit harder you would have got the right awnser. And that is that when a channle is stopped ...
by bfernhout
Fri Apr 05, 2024 12:51 pm
Forum: Bugs - Windows
Topic: [Done] Sound channel not working properly
Replies: 10
Views: 360

[Done] Sound channel not working properly

When is made a couple sounds and put them in a channle. The channle number is the same for all ; Sound numbering for channel Enumeration #Earth #Training #Construction #Construction_On = 16 EndEnumeration; ;Load sound files LoadSound(#SND_EARTH_CITY,"EarthCity.wav") LoadSound(#SND_CONSTRUC...
by bfernhout
Fri Jul 14, 2023 11:03 am
Forum: Bugs - IDE
Topic: variable viewer do not re agange array on request
Replies: 0
Views: 400

variable viewer do not re agange array on request

I am running under windows 11 with PB 6.02 LTS. When i start a program and open the variable viewer during debugging. The list of array's is not Alphabetical. I can not set all the name in Alphabetical mode. There wil nothing happend. This is the same when i click on Scope. The scope stay grabbaged....
by bfernhout
Mon May 01, 2023 8:44 pm
Forum: Coding Questions
Topic: reading integer give a random number
Replies: 5
Views: 299

Re: reading integer give a random number

Thanks for the information. I did not notice it by miself that i did write it wrong.
by bfernhout
Sat Apr 29, 2023 10:05 pm
Forum: Coding Questions
Topic: reading integer give a random number
Replies: 5
Views: 299

Re: reading integer give a random number

Forgot to mentiom that i am running on a AMD 64 bit system 3.8 Ghz windows 11 Pro
AMD Ryzen 7 5800X 8 core
Nvidea GF RTX 3060 TI 8 GB
Memory 32 GB

This information may help
by bfernhout
Sat Apr 29, 2023 9:59 pm
Forum: Coding Questions
Topic: reading integer give a random number
Replies: 5
Views: 299

reading integer give a random number

i use this code: Procedure SRivPlop() Protected X.i, Dim SRivMatrix.i(5) Restore SRiv For X = 0 To 5 Read.i SRivMatrix(x) Next CallDebugger Sriv: DataSection Data.i 0, 0, 3, 3, 0, 0 EndDataSection EndProcedure SRivPlop() This code gives no errors but when the data is readed, the numbers in the array...
by bfernhout
Wed Nov 30, 2022 12:27 pm
Forum: Feature Requests and Wishlists
Topic: For - Next - Step
Replies: 4
Views: 601

For - Next - Step

In the documentation the step must be an constand. But in many Basic programs i see is that the step is not a constant but a integer variable. Why is this in PureBasic a constant. Can it be made to an Integer variable. This I found out becaus i try to use the step with a variable but PB will not all...
by bfernhout
Fri Sep 09, 2022 4:14 pm
Forum: Coding Questions
Topic: Structure field name confuse variable name
Replies: 4
Views: 453

Re: Structure field name confuse variable name

This topic mayt be closed. I did not notice that the program was clearing the variable in the structure. When in debug mode the variable is not reconiced as a variable from the structure. That the only problem. I had a long piece of code and needed to reset the value a couple of times. That was done...
by bfernhout
Wed Sep 07, 2022 8:56 pm
Forum: Coding Questions
Topic: Structure field name confuse variable name
Replies: 4
Views: 453

Re: Structure field name confuse variable name

Sorry to give the version its PB 6.00 LTS 64 bits
by bfernhout
Wed Sep 07, 2022 8:55 pm
Forum: Coding Questions
Topic: Structure field name confuse variable name
Replies: 4
Views: 453

Structure field name confuse variable name

I am trying to program a packman version for study class. When i use a variable called Direction en i use a structure e.g. Pinky()'\Direction. the Pinky()\Direction is seen as a variable Direction. Code example #Left =1 #Right = 2 Global Direction.i = 0 Structure Pink Direction.i Endstructure Global...
by bfernhout
Sun Apr 17, 2022 6:47 pm
Forum: Coding Questions
Topic: [ LTS 5.73 X64 Win 10] #PI give a syntax error
Replies: 4
Views: 325

Re: [ LTS 5.73 X64 Win 10] #PI give a syntax error

I did read the documentation on the wrong way. That is becaus i am dyslexis. That give me sometime the wrong impression. After carefully checking and reading the reply i figure it out. The Constant is already defined. So when i redefine the constant i got a error. When ik defining e.g. #PI its a err...
by bfernhout
Thu Apr 14, 2022 11:19 am
Forum: Coding Questions
Topic: [ LTS 5.73 X64 Win 10] #PI give a syntax error
Replies: 4
Views: 325

[ LTS 5.73 X64 Win 10] #PI give a syntax error

I try to use the constant #PI but the compiler rejects this. By giving a syntax error #PI Then i did somthing realy weerd. And give the constant an value. #PI = 3.14 This is also rejected by saying Constant already declared. Is this a real bug or is there somthing wrong here // Moved from "Bugs...
by bfernhout
Wed Jan 12, 2022 10:22 pm
Forum: Game Programming
Topic: What does the value returned by 'LoadSound()' represent?
Replies: 3
Views: 5001

Re: What does the value returned by 'LoadSound()' represent?

I do not know if i do this on the right way. But if you want to know the adress of a loaded sound. But i use the following methode:

Code: Select all

#My_Sound = 1
Global Position.i
LoadSound(#My_Sound,"The_Sound.wav")
*Position = @#My_Sound
*Position is now a memeory pointer to the sound file.
by bfernhout
Tue Dec 28, 2021 4:26 pm
Forum: Coding Questions
Topic: Double events
Replies: 8
Views: 600

Re: Double events

Thank you all for the extra information.

It's helped me a lot.

bart.
by bfernhout
Tue Dec 28, 2021 4:02 pm
Forum: Coding Questions
Topic: Double events
Replies: 8
Views: 600

Re: Double events

hello netmaestro I tested this on differend machines and using 3 differend versions of PB . i don't think this is a bug. But you never can tell, if it's do. But if all versions do the same, i think that PB is just reading the information Windows is troughwing. So if windows is giving a double event,...