Hacking How do I set up drc-sim?

smileyhead

I like cute stuff.
OP
Member
Joined
Aug 31, 2015
Messages
4,802
Trophies
3
Age
23
Location
Budakeszi, Hungary
Website
sites.google.com
XP
10,581
Country
Hungary
After fetching the required modules for days, I finally got it to open a window... then it immediately closed with the following output in the Terminal:
Code:
Traceback (most recent call last):
  File "drc-sim.py", line 38, in <module>
    MSG_S = udp_service(LOCAL_IP, PORT_MSG)
  File "drc-sim.py", line 26, in udp_service
    sock.bind((ip, port + service_addend(ip)))
  File "/usr/lib/python2.7/socket.py", line 228, in meth
    return getattr(self._sock,name)(*args)
socket.error: [Errno 99] Cannot assign requested address
What do I do to get it working? :unsure:
 

purechaos996

Well-Known Member
Member
Joined
Nov 5, 2008
Messages
797
Trophies
1
Age
30
Location
Connecticut
XP
2,311
Country
United States
I've actually been interested in getting this working on a Pi for awhile now, I tried it out awhile ago and didnt get that far. Best of luck mate, hopefully you can document your process so others can mess around with it.
 

rbsk

Well-Known Member
Newcomer
Joined
May 10, 2016
Messages
64
Trophies
0
Age
39
XP
96
Country
United States
What do I do with this? I don't understand most of it. :(

"When you bind(), you are associating the socket with a local IP address and a port. So, as long as the address is local, 127.0.0.1 (localhost address) included, bind would work. But, trying to bind to a address that is not local would lead to the above error."

So it would seem the IP address you are giving it is not on your local network (is invalid) - be it 10.0.0.xxx or 192.168.1.xxx or whatever your device ip is on your network.
 

smileyhead

I like cute stuff.
OP
Member
Joined
Aug 31, 2015
Messages
4,802
Trophies
3
Age
23
Location
Budakeszi, Hungary
Website
sites.google.com
XP
10,581
Country
Hungary
"When you bind(), you are associating the socket with a local IP address and a port. So, as long as the address is local, 127.0.0.1 (localhost address) included, bind would work. But, trying to bind to a address that is not local would lead to the above error."

So it would seem the IP address you are giving it is not on your local network (is invalid) - be it 10.0.0.xxx or 192.168.1.xxx or whatever your device ip is on your network.
Thanks, but now I ave a new error. :(
Code:
__pycache__/_cffi__xc79f4b7bx23aff9e7.c:209:44: fatal error: libavcodec/avcodec.h: No such file or directory
compilation terminated.
Traceback (most recent call last):
  File "drc-sim.py", line 373, in <module>
    VID_S : ServiceVSTRM(),
  File "drc-sim.py", line 165, in __init__
    pygame.display.get_surface().get_size())
  File "/home/levente/Desktop/memahaxx-drc-sim-7392698efa29/H264Decoder.py", line 86, in __init__
    s.__init_ffi()
  File "/home/levente/Desktop/memahaxx-drc-sim-7392698efa29/H264Decoder.py", line 62, in __init_ffi
    ''', libraries=['avcodec', 'swscale'])
  File "/usr/lib/python2.7/dist-packages/cffi/api.py", line 433, in verify
    lib = self.verifier.load_library()
  File "/usr/lib/python2.7/dist-packages/cffi/verifier.py", line 113, in load_library
    self._compile_module()
  File "/usr/lib/python2.7/dist-packages/cffi/verifier.py", line 210, in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
  File "/usr/lib/python2.7/dist-packages/cffi/ffiplatform.py", line 29, in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose)
  File "/usr/lib/python2.7/dist-packages/cffi/ffiplatform.py", line 62, in _build
    raise VerificationError('%s: %s' % (e.__class__.__name__, e))
cffi.ffiplatform.VerificationError: CompileError: command 'x86_64-linux-gnu-gcc' failed with exit status 1
 

rbsk

Well-Known Member
Newcomer
Joined
May 10, 2016
Messages
64
Trophies
0
Age
39
XP
96
Country
United States
Thanks, but now I ave a new error. :(
Code:
__pycache__/_cffi__xc79f4b7bx23aff9e7.c:209:44: fatal error: libavcodec/avcodec.h: No such file or directory
compilation terminated.
Traceback (most recent call last):
  File "drc-sim.py", line 373, in <module>
    VID_S : ServiceVSTRM(),
  File "drc-sim.py", line 165, in __init__
    pygame.display.get_surface().get_size())
  File "/home/levente/Desktop/memahaxx-drc-sim-7392698efa29/H264Decoder.py", line 86, in __init__
    s.__init_ffi()
  File "/home/levente/Desktop/memahaxx-drc-sim-7392698efa29/H264Decoder.py", line 62, in __init_ffi
    ''', libraries=['avcodec', 'swscale'])
  File "/usr/lib/python2.7/dist-packages/cffi/api.py", line 433, in verify
    lib = self.verifier.load_library()
  File "/usr/lib/python2.7/dist-packages/cffi/verifier.py", line 113, in load_library
    self._compile_module()
  File "/usr/lib/python2.7/dist-packages/cffi/verifier.py", line 210, in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
  File "/usr/lib/python2.7/dist-packages/cffi/ffiplatform.py", line 29, in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose)
  File "/usr/lib/python2.7/dist-packages/cffi/ffiplatform.py", line 62, in _build
    raise VerificationError('%s: %s' % (e.__class__.__name__, e))
cffi.ffiplatform.VerificationError: CompileError: command 'x86_64-linux-gnu-gcc' failed with exit status 1

Well now you are missing header file for the build process "libavcodec/avcodec.h: No such file or directory".

Have you read this thread?
https://gbatemp.net/threads/how-to-use-drc-sim.390217/
 

smileyhead

I like cute stuff.
OP
Member
Joined
Aug 31, 2015
Messages
4,802
Trophies
3
Age
23
Location
Budakeszi, Hungary
Website
sites.google.com
XP
10,581
Country
Hungary

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • Xdqwerty @ Xdqwerty:
    @Psionic Roshambo, atleast I think the latest version's apk is archived somewhere
    +1
  • K3Nv2 @ K3Nv2:
    Yeah it works great but it's the obvious Ds factor you loose from it it's not like playing atari games on atari because Nintendo actually use to give a reason to buy their hardware
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    Honestly Ken I actually have the hardware and it's hacked and works fine, prefer my phone lol
  • Psionic Roshambo @ Psionic Roshambo:
    Microphone is more sensitive, DraStic has a high res mode, screen is way better just overall a better experience
  • K3Nv2 @ K3Nv2:
    I just like game consoles how they were intended to play if they have a unique enough reason to buy them anything else yeah just download emulation for it
  • Psionic Roshambo @ Psionic Roshambo:
    Oh and touch screen infinity better lol
  • HiradeGirl @ HiradeGirl:
    @Xdqwerty It's still on Play Store.
  • HiradeGirl @ HiradeGirl:
    for free
  • HiradeGirl @ HiradeGirl:
    Install before they remove it.
  • K3Nv2 @ K3Nv2:
    I'd like to see a DS emulator that allows casting top screen to TV then use bottom for the touch screen stuff
    +1
  • HiradeGirl @ HiradeGirl:
    I used a vertical touch 22" monitor for playing some 3DS games through Citra.
  • K3Nv2 @ K3Nv2:
    Can't be that far off from it not like ds requires super hardware
  • HiradeGirl @ HiradeGirl:
    @K3Nv2 I did that using Citra for 3DS games. Bottom screen was my smartphone. Until I got the touch screen.
  • SwordShielder @ SwordShielder:
    Use a TV
  • K3Nv2 @ K3Nv2:
    Citra allows it already?
  • HiradeGirl @ HiradeGirl:
    Yes.
  • Psionic Roshambo @ Psionic Roshambo:
    Ken I have that sort of set up on Drastic on Pi for games that don't require touch
  • Psionic Roshambo @ Psionic Roshambo:
    Looks nice too
  • HiradeGirl @ HiradeGirl:
    Any TV with your PC connected with Citra and any smartphone to use as a screen using a free play store app.
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    Gonna look into that when I get home
  • K3Nv2 @ K3Nv2:
    Any good 3ds smut titles psi? :creep:
  • Psionic Roshambo @ Psionic Roshambo:
    Lol I think there was some home brew
  • K3Nv2 @ K3Nv2:
    Tap to get bigger!
    K3Nv2 @ K3Nv2: https://youtu.be/j7nOeihhqX0?si=0Krm92hxEDoEw9Je