BASIC

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.


Topics - Maxheadroom

Pages: [1] 2
1
Hi, got the below issue just after the latest update, it did sort of worked before it made a bin file which I have not yet worked out how to get running on the PI. the program complies for windows ok.
_______________________________________
*** Configuration: RASPBERRY_PI ***
precompiling:
GPC - GLBasic Precompiler V.10.037 SN:84d70ef9 - 3D, NET
Wordcount:284 commands
compile+link:
*** FATAL ERROR - Please post this output in the forum
_______________________________________
*** Finished ***
Elapsed: 2.9 sec. Time: 14:25
Build: 0 succeeded.
*** 1 FAILED ***


2
GLBasic - en / Network help
« on: 2013-Jun-07 »
Help, just trying to open a network port 23 (telnet) to a telnet server wake it up and receive the login prompt. However I am missing something as I just get a -1 error at the sock_send stage any suggestions?

Code: GLBasic [Select]
GLOBAL sock, port%, ip$,socktcp , socksend, sockread, ret$

port%= 23
ip$= "192.168.55.2"

start:

sock=SOCK_INIT();


socktcp=SOCK_TCPCONNECT(ip$,port%,5000);
DEBUG " setup connect= "+socktcp



socksend = SOCK_TCPSEND (port%, "wake up"+CHR$(13))
DEBUG "send:= "+socksend

sockread = SOCK_RECV (port%, ret$, 1024)
DEBUG " read error= "+ sockread+ " incoming packet="+ret$
 
 
SOCK_CLOSE (port%)

SOCK_SHUTDOWN
END

3
GLBasic - en / down arrow
« on: 2012-Oct-08 »
Am I going mad! My down arrow in the editor pain is not working anymore, am I missing a tick box? Its working on ‘tools- keycodes’ it returns 208, it’s just not working in the editor and its driving me potty any ideas?

4
Neural Networking for GLBasic:

this was part of some University report i had to do there are some bugs but on the whole it works.
Many game companies use forms of artificial intelligence to enhance their decision making process, whether this is for Robots fighting or huge enemy force moving across the battle field. There are a large number of different types of artificial systems. However, this report only covers neural networking, I have reduced the maths in this report to a minimum to help understand the basics and not to take a math’s lesson.

also contains the sorce code in the rar file:

Contents of the report
1.0 Executive summary.
2.0 Artificial neural networks explained.
2.1 What are they?   
2.2 How do they work?
2.2.1 The basic building block of the software neuron.
2.3 Artificial neural network architecture.   
2.3.1 How do they work?   
2.3.2 How do they learn?   
3.0 Example included.   
3.1 Artificial neural network main program.   
3.1.1 Smart Objectives   
3.1.2 Data Sets   
3.2 Training steps   
3.3 Steps in testing the artificial neural network.   
4.0 Bibliography   
Appendix  A (Main Artificial neural network program).   
Appendix B (Main Artificial neural network batch processing program).   




[attachment deleted by admin]

5
GLBasic - en / DDgui
« on: 2010-Mar-04 »
Mr G, or anyone help, with DDgui function i can't seem to get any output where i am i going wrong, it all seem to work but when you press the X m=0 ?

DDgui_pushdialog(10,10,200,200)
DDgui_UpdateFont(TRUE)
DDgui_set("", "TEXT", "Load")
DDgui_button("exit", "X", 0,0)
WHILE TRUE
DDgui_show(FALSE)
m=DDgui_get ("exit",m)
PRINT "m="+m,400,400

SHOWSCREEN
WEND

6
GLBasic - en / Maths function 'e'
« on: 2010-Feb-25 »
Hello,  have two questions: i am trying to work with the 'e' function in math in fact 'e' to the power of, i have had to use the below code is there a easier way?

e=2.71828182845905
max = POW (e,tot)

I can't get more than 10 decimal points is this correct?

7
Beta Tests / The Space Kid
« on: 2008-Oct-14 »
started the kid try out the demo, just a fly aroud. still got some bugs but working on them?



http://www.glbasic.com/showroom.php?game=TheKid&site=games&lang=en

8
GLBasic - en / lost in space
« on: 2008-May-13 »
Sorry I am having a maths problem with the x_camera please can you help: I am making a first person space game, I am trying to use the X_camera as the window view and fly around space with planets, meteors and bandits . But I can’t get the camera to move or show in the right way. I am using the list of variables below can you help?

Shipx = ship x position
Shipy = ship y position
Shipz = ship z position

Shipdegxz = axis of xz of ship in space
Shipdegxy = axis of xy of ship in space

motmentum = speed of movement along the axis

The not working code so far:

//setup camera directions
camx= INTEGER(shipx+(motmentum10)+(COS(shipdegxz)))
camz= INTEGER(shipz+(motmentum+10)+(SIN(shipdegxz))+(SIN(shipdegxy)))
camy= INTEGER(shipy+(motmentum+10+(COS(shipdegxy)))
X_CAMERA shipx, shipy, shipz,     camx, camy , camz


Next I need to move the ship along the axis:

shipx=INTEGER(shipx+(motmentum+(COS(shipdegxz))))
shipz=INTEGER(shipz+(motmentum+(SIN(shipdegxz)))+(motmentum+(SIN(shipdegxy))))
shipy=INTEGER(shipy+(motmentum+(COS(shipdegxy))))


Thanks, Max

9
FAQ / update
« on: 2007-Nov-26 »
Hi, I have been away working on other projects and have not had time to play, on my return I have found that you have moved up the versions! However I can not join in the fun as I am stuck in version 3.283 (full version 3d+net) I have had a look around the forum for any clue's of the updates, but they most be lost in the myths of time. Can you help or point me in the right direction.

Thanks

10
Inline / 3rd party / DLL help
« on: 2006-Oct-29 »
Ok I omit defeat with the inline command the problem is I just can’t work how it works, I even have the full description file from the supplier. If I send you the dll and the document, can you show me how to get one or two of the commands working, I am sure if you show me one or two I could work out the rest out!

Thanks, Max…

EDIT:
Problem is solved, COM port communication is working. See best answer here:
http://www.glbasic.com/forum/viewtopic.php?pid=2499#p2499

11
GLBasic - en / C++
« on: 2006-Jan-19 »
Gernot,

Can I ask about the coming C++ part how would or even could you add in a function like the link below, as I have no idea about c++?

http://www.codeproject.com/managedcpp/howtocomport.asp

Please can you give me some pointers as to what i would need to get started into.

Thanks, MAX…

12
GLBasic - en / update
« on: 2006-Jan-03 »
help,
it would seem that i am stuck in version 2.978 and it will not update, reading the questions should i download a new version!

thanks, Max

13
GLBasic - en / GLBasic 3 SDK - beta
« on: 2005-Dec-09 »
cool new update!

when do you think it will be ready? (need the c++ part), i had better start learning c++ as soon as i can.
:cool:
max

14
GLBasic - en / file access
« on: 2005-Nov-23 »
Gernot,
   Can you help with a bit of code, I am trying to get the time into one of my programs, the code below works first time but when you run the code again it has not updated, Could it be that the file once accessed by Glbasic it will not close the file or "let go of the file for other programs", and when the dos shell trys to access it again it can't get access, If I am correct, are there any ways around it?.

Thanks, Maxheadroom.

Code:

Loop: // start

Shellcmd (“cmd /c time /t > tim.txt” ,true ,false, rv) // shell out and put time in tim.txt

Getfile “tim.txt”,0,time$ // open file and get the time

Print time$,100,100 // print time out on screen

showscreen

Goto loop // loop for ever

15
GLBasic - en / The Next Gen
« on: 2005-Oct-24 »
Hi,
may i ask when the next update is?
If there is an update, will it only contain any bug fixes?
And is it worth waiting on the edge of my programing seat for any supper extras!

thanks, max...

Pages: [1] 2