Giter Club home page Giter Club logo

dreampi's People

Contributors

adamharley avatar kazade avatar sargunv avatar ziggythehamster avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

dreampi's Issues

tail instances not killed

Based on my testing, after sh.tail is launched and the for loop is exited, it looks like the instance of tail is not terminated. I am testing dreampi using Python 2.7.12. It looks like the iterator needs to be assigned to a variable and the terminate or kill method has to be called once the instance of tail is no longer needed; having the iterator go out of scope does not terminate tail.

Migrate to Python3

DreamPi scripts are written using Python 2. That version of Python is no longer maintained and is being dropped by Linux distributions. In particular, it is no longer possible to use DreamPi scripts on latest RaspberryPi OS Bullseye since it only ships with Python 3. DreamPi scripts should be updated to use Python 3 instead of 2.

Errors while running DreamPi

Hello!

I was able to get DreamPi 1.3 running on my device, but for some reason, it wasn't running at startup. I thought maybe I should update the files with the most up to date ones on here, then ran it with --no-daemon and it says:

Traceback (most recent call last):
File "./dreampi.py", line 396, in
sys.exit(main())
File "./dreampi.py", line 384, in main
config_server.stop()
File "/home/pi/config_server.py", line 81, in stop
thread.join()
AttributeError: 'NoneType' object has no attribute 'join'

Did I mess up my install? Is there anything I can do to correct it?

How do I upgrade?

It looks like DreamPi is running Raspbian 7, whose last release was 2015. That version of Raspbian is based on Debian Wheezy, which was end-of-life'd in May of 2018.

I'd like to keep my DreamPi patched with security updates. Is there a supported way for me to do that? Or, for that matter, is there a way to update my DreamPi in its entirety?

Feature Request: Docker image

I was thinking today, it might be neat to have a docker image available for Dreampi, for people who already have a machine set up near their dreamcast and want to avoid having to use much additional hardware save from the USB modem. I figured I'd suggest it as a potential feature!

Error on dreampi start

Hi, I have a Raspberry PI Model B+ and I installed the dreampi 0.98 last version

When I start the devide and log in, with the default user/password, and start the dreampi.py script with the command sudo ./dreampi.py --no-daemon, the console give me the next error message attached on the picture.

I'm using a conceptronic C54U usb modem void capable

What' s wrong?

Thanks

imag0561 1

4x4 Evolution DNS Issues

4x4 Evo attempts to contact one of the following servers, in apparently random order:
master.4x4evolution.com
master1.4x4evolution.com
master2.4x4evolution.com
master3.4x4evolution.com
master4.4x4evolution.com
master5.4x4evolution.com

As long as DNS is modified so that those server resolve to the same IP address (number) as dctalk.no-ip.info, you'll be able to connect. However, you can't get to a game lobby because the server at dctalk.no-ip.info will tell the game to look for lobbies at dctalk.no-ip.info (domain name), at which point the DNS in the DreamPi seems to be directing those queries to Sylverant's lobby server (67.222.144.120). See log attached.
4x4EvoLog.txt

Can't use '--enable-port-forwarding' and/or '--disable-dial-tone' flags because len(sys.argv) != 2

Right now, when trying to use thoise flags, you're met with :

Usage: dreampi/dreampi.py start|stop|restart

This is because in 'dreamppi.py', l.701 ;

if len(sys.argv) == 2:

but when using flags, e.g ;sudo dreampi.py start --disable-dial-tone, len(sys.argv) is equal to 3, and can be 4 if both flags are combined.

In order to accept those flags, l.701 could become, but I've not investigated if it breaks something :

if len(sys.argv) >= 2:

Better usage message

Also, maybe the usage message at l.712 could specify that flags should follow the start/stop/restart directive, i.e :

        print(("Usage: %s start|stop|restart [FLAGS]" % sys.argv[0]))

instead of

print(("Usage: %s start|stop|restart" % sys.argv[0]))

I can submit a PR if those solutions look ok to you.

Unable to define custom DNS in dnsmasq.conf

A user recently tried to define a different server in dnsmasq.conf to play on a different server than the ones dreamcast.online directs you to.

However, there is a stacktrace error from SSL/TLS checks it seems, posted below:

 Something went wrong...
#012Traceback (most recent call last):
#012  File "/usr/local/bin/dreampi", line 623, in main
#012    update_dns_file()
#012  File "/usr/local/bin/dreampi", line 69, in update_dns_file
#012    response = urllib2.urlopen(DNS_FILE)
#012  File "/usr/lib/python2.7/urllib2.py", line 154, in urlopen
#012    return opener.open(url, data, timeout)
#012  File "/usr/lib/python2.7/urllib2.py", line 429, in open
#012    response = self._open(req, data)
#012  File "/usr/lib/python2.7/urllib2.py", line 447, in _open
#012    '_open', req)
#012  File "/usr/lib/python2.7/urllib2.py", line 407, in _call_chain
#012    result = func(*args)
#012  File "/usr/lib/python2.7/urllib2.py", line 1241, in https_open
#012    context=self._context)
#012  File "/usr/lib/python2.7/urllib2.py", line 1195, in do_open
#012    h.request(req.get_method(), req.get_selector(), req.data, headers)
#012  File "/usr/lib/python2.7/httplib.py", line 1042, in request
#012    self._send_request(method, url, body, headers)
#012  File "/usr/lib/python2.7/httplib.py", line 1082, in _send_request
#012    self.endheaders(body)
#012  File "/usr/lib/python2.7/httplib.py", line 1038, in endheaders
#012    self._send_output(message_body)
#012  File "/usr/lib/python2.7/httplib.py", line 882, in _send_output
#012    self.send(msg)
#012  File "/usr/lib/python2.7/httplib.py", line 844, in send
#012    self.connect()
#012  File "/usr/lib/python2.7/httplib.py", line 1263, in connect
#012    server_hostname=server_hostname)
#012  File "/usr/lib/python2.7/ssl.py", line 363, in wrap_socket
#012    _context=self)
#012  File "/usr/lib/python2.7/ssl.py", line 611, in __init__
#012    self.do_handshake()
#012  File "/usr/lib/python2.7/ssl.py", line 848, in do_handshake
#012    match_hostname(self.getpeercert(), self.server_hostname)
#012  File "/usr/lib/python2.7/ssl.py", line 282, in match_hostname
#012    % (hostname, ', '.join(map(repr, dnsnames))))
#012CertificateError: hostname 'dreamcast.online' doesn't match either of '$HOSTNAME1', '$HOSTNAME2'

Supporting multiple modems.

I started looking into the source while waiting for my dreampi parts to ship, with a specific idea in mind: I'd like to get 2 dreamcasts online using a single RPi. No port forwarding, PSOv2 only.
I'm working on my fork of the repo, will test more thoroughly when my stuff arrives because as of now I have no proper hardware to test besides the RPi itself.

loopfz#1

Still, any comment/advice is appreciated.

Only one led on my DELL modem

Hi,

I'm trying to connect my Dreamcast with DreamPi 1.6 but I cannot manage to do it :
I've got only one LED green on my DELL modem bought on eBay.

My Dreamcast modem RJ11 goes through the PAL USB line inducer bought on Dreamcast Live.

Have you got any idea what's wrong with this ?
It seems that I'm not the only one to encounter this problem.

img_20170824_084014
img_20170824_084050
img_20170824_084128
img_20170824_084221
img_20170824_084230
img_20170824_085120

dreampi check_internet_connection function doesn't handle socket.timeout?

I saw someone on reddit (discussion here) with an interesting issue with getting this to work using a PC image

image

dreampi/dreampi.py

Lines 51 to 57 in 4937c80

for host in IP_ADDRESS_LIST:
try:
socket.setdefaulttimeout(timeout)
socket.socket(socket.AF_INET, socket.SOCK_STREAM).connect((host, port))
return True
except socket.error:
pass

with the timeout: timed out message I suspect that socket.timeout exceptions should also be given a pass, particularly if the DNS server being tested not respond to TCP connections on port 53

Intermittent Connectivity with US Modem

Discussed at length on AssemblerGames, but adding here for tracking. There seems to be timing issues when using a US Dreamcast modem that reduce the odds of a successful connection to about 1 in 3. Some games (Maximum Pool, 4x4 Evo, Starlancer) won't accept even a successful connection, and hang up immediately after connection (rage quit). Logs attached.

BadGoodConnectionLog.txt

Starlancer-RageQuit.txt

DreamPi stops connecting to PSO

I am unfortunately a fish out of water on this site, I know nothing about code/computers on a scientific scale.
Secondly, I don't have an HDMI monitor to use to see exactly what my DreamPi is doing, or why.

I have bought two RasberryPi's 3 B and set them both up with DreamPi for use with Phantasy Star Online over the last 4 weeks, and they both worked fine to begin with. After 3 weeks one began not to connect to the servers. I used the other backup DreamPi setup for diagnoses, and it worked. I swapped out all the the ancillaries of the unworking setup, and still the backup functioned meaning it had to be either the RasperryPi or the SD card. I replaced the SD card with a new one and wrote DreamPi to it, still won't connect to servers.

Batteries on the line voltage inducer were replaced with new ones, even though the old batteries were tested to work on the backup Raspberry Pi setup as stated before

All lights are on as normal.

I then used my backup for a week, and now it is suffering the same problem.

Any help or ideas? What is DreamPi doing so different to work for weeks(or a week) and then refuse to work all of the sudden?

No module serial error

im getting an error when executing dreami.py

Captura de pantalla de 2021-05-27 18-52-58

i have installed pip install pyserial, but i think the problem is the directory, maybe the module did not install in the correct directory, how can i solve it

Use Dreampi with other ARM OS (ArchlinuxARM)

Hi. i want use dreampy on the Zero 2 W with ArchLinuxARM. but needs the packages dc2k2, dcgamespy and dcvoip, wich is in .deb (debian) in the repo (and is binary/compiled)

where i can get the source programs for use with other OS than Debian?

i can convert the .dev with Alien. but i prefeer build it myself

greetings

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.