Search found 284 matches

by squall4226
Jul 29, 2017 23:24
Forum: Projects
Topic: StrawberryNES (6502/NES emulator)
Replies: 11
Views: 3575

Re: StrawberryNES (6502/NES emulator)

Yeah no, I didn't think about 64 bits at all. I first started the project in late 2013 and I didn't even know there was 64 bit FB(IDK when it actually became a thing tbh). So it's quite possible that compiling it for 64 bits would break things horribly XD. Nobbs and I took a look at Prince of Persia...
by squall4226
Jul 29, 2017 20:12
Forum: Projects
Topic: StrawberryNES (6502/NES emulator)
Replies: 11
Views: 3575

Re: StrawberryNES (6502/NES emulator)

@ST_W - Yeah I did actually plan to put a release on GITHUB once I got scrolling working but I haven't quite gotten there yet. TBH I didn't expect anyone to really try to run it that quickly lol. So here are a few more things I forgot to point out: Yes, there are dependencies as you guys have noted ...
by squall4226
Jul 29, 2017 2:12
Forum: Projects
Topic: StrawberryNES (6502/NES emulator)
Replies: 11
Views: 3575

StrawberryNES (6502/NES emulator)

Hey guys! I'm back from the dead again. If you remember a while ago I was working on a 6502 emulator in FB. There was a thread a while ago but it seems to have lost some posts and was last posted in on 2014. So I thought to make a new one. Well... tons of progress has been made since I last posted a...
by squall4226
May 05, 2016 15:58
Forum: General
Topic: How to send data to device on serial(COM) port?
Replies: 11
Views: 2736

Re: How to send data to device on serial(COM) port?

Well I can tell you that for whatever reason using CHR does not work for me. One thought: Maybe using Print is pushing it to the wrong "position" so to speak. Note how the Put that works is sending to position 0. Maybe print is sending to position 1. IDK. All I know is put works and print ...
by squall4226
May 04, 2016 22:11
Forum: General
Topic: How to send data to device on serial(COM) port?
Replies: 11
Views: 2736

Re: How to send data to device on serial(COM) port?

MrSwiss was correct. Thank you! Here is the code that updates my relays(based on a switches() array) Opening the com port: Open com "COM6:9600,N,8,1" For Binary As #7 Updating the relay: Sub relayupdate Dim As Ubyte value If switches(1) = 1 Then value += 1 If switches(2) = 1 Then value += ...
by squall4226
May 03, 2016 20:02
Forum: General
Topic: How to send data to device on serial(COM) port?
Replies: 11
Views: 2736

Re: How to send data to device on serial(COM) port?

As for what you read: #1 is not true, if you read the comments on that review that mentioned the lack of such diodes that guy was just mouthing off and had no idea what he was speaking of. The ULN2803 contains the protective diodes. #2 Yes, this is true. But my home build device consisting of a scav...
by squall4226
May 03, 2016 9:29
Forum: General
Topic: How to send data to device on serial(COM) port?
Replies: 11
Views: 2736

How to send data to device on serial(COM) port?

Hey guys, I have bought a USB relay board (This if you are interested: http://www.amazon.com/SainSmart-USB-Channel-Relay-Automation/dp/B009A524Z0?ie=UTF8&psc=1&redirect=true&ref_=oh_aui_detailpage_o00_s00 ) It uses an FTDI chip and identifies as a serial port. I want to be able to contro...
by squall4226
Mar 21, 2016 23:05
Forum: General
Topic: Sending data over the Internet? (Networking question)
Replies: 37
Views: 5852

Re: Sending data over the Internet? (Networking question)

It's generally not common here in the U.S. either, especially not with DSL like I have, but for whatever reason mine is. Even resetting the gateway or leaving it unplugged for a while doesn't change my IP. I've had the same one for over a year now. Like I said I don't know why, but I'm not complaini...
by squall4226
Mar 21, 2016 21:40
Forum: General
Topic: Sending data over the Internet? (Networking question)
Replies: 37
Views: 5852

Re: Sending data over the Internet? (Networking question)

Looks like you solved the biggest problem in scope of connecting computers of the internet. How your friend got your IP ? May be you have a dynamic IP from your ISP and you gave it your friend before. Or you have a fixed IP and your friend know it. Or you have an domain name enty in a nameserver of...
by squall4226
Mar 21, 2016 3:26
Forum: General
Topic: Sending data over the Internet? (Networking question)
Replies: 37
Views: 5852

Re: Sending data over the Internet? (Networking question)

So I decided that rather than add the networking capability to my already very complicated program(which is controlled by a scripting engine I wrote a while back, originally for my RPG) it would be better and easier to make a standalone server program for the client. I built both the client and serv...
by squall4226
Mar 20, 2016 18:28
Forum: General
Topic: Sending data over the Internet? (Networking question)
Replies: 37
Views: 5852

Re: Sending data over the Internet? (Networking question)

At least for me I get warnings with the 64bit compiler but not the 32bit. IDK why. Meanwhile @D.J. Peters - thanks for those examples. They compile and run fine and I think I understand them just fine. I do note in your comment that you say the port has to be > 9999. I knew some ports were reserved ...
by squall4226
Mar 19, 2016 17:51
Forum: General
Topic: Sending data over the Internet? (Networking question)
Replies: 37
Views: 5852

Re: Sending data over the Internet? (Networking question)

Well now it's working for me with no delay on my lan. Here is the code I'm currently using: Server: #Include Once "snc.bi" #Include Once "fbgfx.bi" Using FB ScreenRes 800,600,16 Dim As Integer status Dim Shared As zstring Ptr dataptr var Server = NetworkServer(5469) Do While Not ...
by squall4226
Mar 19, 2016 14:31
Forum: General
Topic: Sending data over the Internet? (Networking question)
Replies: 37
Views: 5852

Re: Sending data over the Internet? (Networking question)

Full success! Thank you guys for your help as always! I shall try to integrate into my main program now. Edit: Wait, it won't work across the net. It works on my LAN (even from another PC on the LAN) but not across the net. I have the port in question 5469 forwarded for both TCP and UDP in my router...
by squall4226
Mar 19, 2016 14:05
Forum: General
Topic: Sending data over the Internet? (Networking question)
Replies: 37
Views: 5852

Re: Sending data over the Internet? (Networking question)

OOO I got it to send a message. Sort of. It only happened when I closed the client, but the server did receive the string "Test" with this code: #Include Once "snc.bi" #Include Once "fbgfx.bi" Using FB ScreenRes 800,600,16 Dim shared result As Integer Dim Shared As Stri...
by squall4226
Mar 19, 2016 13:59
Forum: General
Topic: Sending data over the Internet? (Networking question)
Replies: 37
Views: 5852

Re: Sending data over the Internet? (Networking question)

It seems to be getting stuck, and it's still the server. I used a beep to debu the server and found: status = ClientConnection->GetData(dataptr) Once the code gets here it stalls. A beep before will fire once I open client, but a beep after will not. It will only get unstuck here once I close the cl...