gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

DS development > beup source?

#126142 - Link_of_Hyrule - Fri Apr 20, 2007 9:48 am

can anyone provide me with the source of beup 0.3 that kevinc released a while back the only links i am able to find are dead and i realy need it

#126147 - Sektor - Fri Apr 20, 2007 10:17 am

http://gtamp.com/DS/beup.tar.bz2

That's the old source. HtheB still legally has to release the current source. Try to contact him first, if he doesn't release it, call the GPL police? :)

It uses hard coded IP addresses, so it breaks whenever MS changes the IP. It really should use host name resolving.
_________________
GTAMP.com/DS


Last edited by Sektor on Sat Apr 28, 2007 3:50 pm; edited 4 times in total

#126150 - Link_of_Hyrule - Fri Apr 20, 2007 10:23 am

Quote:
Does the GPL require that source code of modified versions be posted to the public?
The GPL does not require you to release your modified version. You are free to make modifications and use them privately, without ever releasing them. This applies to organizations (including companies), too; an organization can make a modified version and use it internally without ever releasing it outside the organization.
But if you release the modified version to the public in some way, the GPL requires you to make the modified source code available to the program's users, under the GPL.

Thus, the GPL gives permission to release the modified program in certain ways, and not in other ways; but the decision of whether to release it is up to you.

Can I have a GPL-covered program and an unrelated


yes this is true he has told me he will release the source soon

I have reviewed and compared the 2 sources and quite a bit more then the said 15 lines has been modified from what winmerge shows
just in msn.ccp this whole section was added.

Original Code

Code:
void Switchboard::sendInkMessage(ushort *src, int width, int height) {
   int size;
   byte *gif = bmp2gifMono(src, width, height, &size);
   
   base64Encode((char*)gif, buffer, size);
   size = snprintf(buffer2, 1000, Ink_Body, buffer);
   size = snprintf(buffer, 1000, Msg_Header, trId++, size, buffer2);
   send(socket, buffer, size);



Moddified Code

Code:
void Switchboard::sendInkMessage(ushort *src, int width, int height) {
   int size;
   int offset;
   int rest;
   int numChunks;
   ushort guid[8];
   char error[15];
   byte *gif = bmp2gifMono(src, width, height, &size, error);

   if (!gif) {
      snprintf(buffer, BufferSize, strRep("MsnInkSent"), user.name);
      tab->ta.append(buffer, fontVerdanaBold, RGB(0,25,0));
      snprintf(buffer, BufferSize, "Error in sending ink, error type %s", error);
      tab->ta.append(buffer, RGB(15,15,15));
      return;
   }
   for (int i = 0; i < 8; i++) guid[i] = rand() & 0xffff;

   #define Size 480
   numChunks = size / Size;
   if (size % Size) numChunks++;

   if (numChunks == 1) {

      base64Encode((char*)gif, buffer, size);
      offset = snprintf(buffer2, BufferSize, Ink_Body, buffer);
      offset = snprintf(buffer, BufferSize, Msg_Header, trId++, offset, buffer2);
      send(socket, buffer, offset);

   } else {

   for (int i = 0; i < size; i += Size) {
      rest = (size - i > Size) ? Size : size - i;

      base64Encode((char*)(gif + i), buffer, rest);
      if (i == 0) {
         offset = snprintf(buffer2, BufferSize, Ink_Body_First,
            guid[0], guid[1], guid[2], guid[3],
            guid[4], guid[5], guid[6], guid[7],
            numChunks, buffer);
      } else {
         offset = snprintf(buffer2, BufferSize, Ink_Body_Chunk,
            guid[0], guid[1], guid[2], guid[3],
            guid[4], guid[5], guid[6], guid[7],
            i / Size, buffer);
      }
      offset = snprintf(buffer, BufferSize, Msg_Header, trId++, offset, buffer2);
      send(socket, buffer, offset);
   }

   }

   Bitmap *bmp = new Bitmap(tab->cv.colors, width, height);
   snprintf(buffer, BufferSize, strRep("MsnInkSent"), user.name);
   tab->ta.append(buffer, fontVerdanaBold, RGB(0,25,0));
   tab->ta.append(bmp);
   tab->cv.remakeBuffer();
   tab->update();
}


I am not a professional in this field of coding but im sure that others will review this subject when the source is released.

EDIT: also since beup uses hardcoded ips then all taht needs to be done is to make a settings panel that has the ip address(s) to connect to microsoft and when they change all we have to do is change the setting i would assume then again there could be more to it then this

#126152 - Lick - Fri Apr 20, 2007 10:59 am

Just change a line similar to this one:
Code:
  sain.sin_addr.s_addr = inet_addr("64.233.183.104");


with a host resolving version:
Code:
  struct hostent *he = gethostbyname("www.google.com");
  sain.sin_addr.s_addr = *((u32*)(he->h_addr_list[0]));

_________________
http://licklick.wordpress.com

#126154 - Link_of_Hyrule - Fri Apr 20, 2007 11:04 am

he says hes going to clean up the code and release it for you guys :)

also he says hes going to try and make it so that the problem doesnt occur again (microsoft changing thier ip effecting the software)

#126214 - Dood77 - Sat Apr 21, 2007 1:18 am

Ooh, this is all good news! At least we know what the problem is and that HtheB is willing to fix it.

#126237 - Link_of_Hyrule - Sat Apr 21, 2007 7:31 am

just wonder if anyone knows how to find out what ip microsoft uses if they do then i can release a temporary fix untill HtheB releases the next version of beup

i need to change these values i am assuming does anyone know that proper values?

Code:
//#define Dispatch_IP   IP(207,46,28,77)
//#define Nexus_IP   IP(65,54,179,228)
//#define Passport_IP   IP(65,54,183,198)
//#define Msn_IP      IP(65,54,131,249)
/*servers
65.54.239.140
66.54.239.141
65.54.239.211
65.54.239.20*/

#define Dispatch_IP IP(65,54,239,210)
#define Nexus_IP IP(65,54,179,228)
#define Passport_IP IP(65,54,183,198)
#define Msn_IP IP(65,54,131,249)


EDIT:

ok when i press make i get this

Code:
> "make"
"make" -C arm7
make[1]: Entering directory `/c/beup/arm7'
make[2]: `/c/beup/beupDS.arm7' is up to date.
make[1]: Leaving directory `/c/beup/arm7'
"make" -C arm9
make[1]: Entering directory `/c/beup/arm9'
linking beupDS.arm9.elf
c:/devkitpro/devkitarm/bin/../lib/gcc/arm-eabi/4.1.1/../../../../arm-eabi/bin/ld.exe: cannot find -lcyassl
collect2: ld returned 1 exit status
make[2]: *** [/c/beup/arm9/beupDS.arm9.elf] Error 1
make[1]: *** [build] Error 2
make[1]: Leaving directory `/c/beup/arm9'
"make": *** [arm9/beupDS.elf] Error 2

> Process Exit Code: 2
> Time Taken: 00:01


what do i do to fix it?

#126240 - Sektor - Sat Apr 21, 2007 8:58 am

That means you don't have the file libcyassl.a in your devkitpro\libnds\lib folder. If Beup includes the source for that then you'll have to compile that lib first.

This site has some info on the servers MSN uses:
http://www.hypothetic.org/docs/msn/notification/authentication.php

messenger.hotmail.com port 1863
gateway.messenger.hotmail.com port 80

You can find out the IP address using ping or use a DNS lookup tool.

ping messenger.hotmail.com
_________________
GTAMP.com/DS

#126250 - Link_of_Hyrule - Sat Apr 21, 2007 9:30 am

i just read my chat logs and the other day HtheB said he needed to change this for it to work im assuming that this is some kind of ssl atthentication code but i need the new one for it to work

Code:
static const char* presenceStr[] = {
"AWY",
"BRB",
"BSY",
"HDN",
"IDL",
"LUN",
"NLN",
"PHN",
};


static const char SSL_Certificate[] = {
"MIIC7zCCApmgAwIBAgIBADANBgkqhkiG9w0BAQQFADCBiTELMAkGA1UEBhMCVVMx\r\n"
"DzANBgNVBAgTBk9yZWdvbjERMA8GA1UEBxMIUG9ydGxhbmQxETAPBgNVBAoTCHNh\r\n"
"d3Rvb3RoMSQwIgYDVQQDExt3d3cuc2F3dG9vdGgtY29uc3VsdGluZy5jb20xHTAb\r\n"
"BgkqhkiG9w0BCQEWDmluZm9AeWFzc2wuY29tMB4XDTA1MDExODIwMTIzMloXDTA3\r\n"
"MTAxNTIwMTIzMlowgYkxCzAJBgNVBAYTAlVTMQ8wDQYDVQQIEwZPcmVnb24xETAP\r\n"
"BgNVBAcTCFBvcnRsYW5kMREwDwYDVQQKEwhzYXd0b290aDEkMCIGA1UEAxMbd3d3\r\n"
"LnNhd3Rvb3RoLWNvbnN1bHRpbmcuY29tMR0wGwYJKoZIhvcNAQkBFg5pbmZvQHlh\r\n"
"c3NsLmNvbTBcMA0GCSqGSIb3DQEBAQUAA0sAMEgCQQDPKxQAsDzfb56RQOzI9pCy\r\n"
"W7RwgKWkCnPHRPMqJsQv8Trxw8Ss/MPSw7/112o4Qq0iq8jES0wdFq8FNH15l17h\r\n"
"AgMBAAGjgekwgeYwHQYDVR0OBBYEFMsPH+midnHJ5ugjpsEYt8xEz7mEMIG2BgNV\r\n"
"HSMEga4wgauAFMsPH+midnHJ5ugjpsEYt8xEz7mEoYGPpIGMMIGJMQswCQYDVQQG\r\n"
"EwJVUzEPMA0GA1UECBMGT3JlZ29uMREwDwYDVQQHEwhQb3J0bGFuZDERMA8GA1UE\r\n"
"ChMIc2F3dG9vdGgxJDAiBgNVBAMTG3d3dy5zYXd0b290aC1jb25zdWx0aW5nLmNv\r\n"
"bTEdMBsGCSqGSIb3DQEJARYOaW5mb0B5YXNzbC5jb22CAQAwDAYDVR0TBAUwAwEB\r\n"
"/zANBgkqhkiG9w0BAQQFAANBACf3Pfs5b3OkhvOgSCJghOlcPSg2BRZEmAeH4V21\r\n"
"86e8M1/0KalfhzPf5o694vMKyABprj1BRwPqC0xnRUur8zk=\r\n"
};


EDIT: well i may not be able to fix the ssl connection issue yet but at least i changed the default status to online instead of offline i mean wtf why is the default status offline that is so annoying to have to change it everytime i login

#126287 - Dood77 - Sat Apr 21, 2007 9:10 pm

Better yet would be to make it save your preference...

#126318 - Link_of_Hyrule - Sun Apr 22, 2007 4:36 am

well obviosely only problem is that the source that HtheB gave me is not the current one so it doesnt even get past the main connection to get to the ssl error but he is going to send me the 0.3e source as soon as he gets the chanceim sure at that time he will also release it to the public

and yeh it would be nice to be able to choose the presence you want as default im sure it wouldnt be too hard to make a preference menu with settings liek taht and other things

#126662 - Jamba - Wed Apr 25, 2007 7:43 pm

Hello!

Any more news about the update of Beup to get it working again since the SSL problems?

#126743 - Link_of_Hyrule - Thu Apr 26, 2007 7:40 am

still working on it HtheB is very busy but he said he will email me the newer source when he gets home from class

#126753 - Jamba - Thu Apr 26, 2007 9:22 am

cool! So good to know that beup is still being worked on. My thanks to everyone who is working on it as it's a great program and I really look forward to it working again - I used it every day on my DS until the 'SSL connection failed' problem started thanks to M$ changing servers or protocol!

#126799 - Frigolit - Thu Apr 26, 2007 8:55 pm

For those who doesn't feel like waiting I've simply updated the IP-address in the Beup Live 0.3 NDS ROM.

I'm looking forward for the better fix :) keep up the good work guys

UPDATE:
I've patched the 3.0e DLDI version instead.
Available here: http://www.digitalfractions.net/getfile.html/pub/beup_live_0.3e_update_2007-04-27.nds


Last edited by Frigolit on Fri Apr 27, 2007 8:04 pm; edited 2 times in total

#126801 - Jamba - Thu Apr 26, 2007 9:48 pm

Frigolit wrote:
For those who doesn't feel like waiting I've simply updated the IP-address in the Beup Live 0.3 NDS ROM.
Available here: http://www.digitalfractions.net/pub/beup_live_0.3_update_2007-04-26.nds


Wow! Thanks! Connected!

Although it doesn't store settings or see the avatars? Using Supercard SD. Is this a patched version of the No-Fat version?

Anyway, that's a minor issue! Thank you thank you thank you !!!!!

#126816 - Dood77 - Fri Apr 27, 2007 12:15 am

Worked for me too! I'm on SCminiSD (not much different) and no settings saved for me either. Although I didn't try to DLDI patch it...
_________________
If I use a term wrong or something then feel free to correct, I?m not much of a programmer.

Original DS Phat obtained on day of release + flashme v7
Supercard: miniSD, Kingston 1GB, Kingston 2GB
Ralink chipset PCI NIC

#126841 - Tikker - Fri Apr 27, 2007 6:04 am

didn't work for me at all

R4 and I dldi patched it

may be user error tho?
Tried using firmware wifi setting, as well as custom but no dice

Does it prompt you for username/passwd after it connects with msn? or am I missing something

#126852 - Jamba - Fri Apr 27, 2007 10:30 am

Dood77 wrote:
Worked for me too! I'm on SCminiSD (not much different) and no settings saved for me either. Although I didn't try to DLDI patch it...


It seems to be the 'No-Fat' version of 0.3, before HtheB added the DLDI support. (The DLDI patch program couldn't patch it so that confirms it's before 0.3d)

Still, it was good to be back to using MSN on the DS! Thanks again to Frigolit.

#126872 - Frigolit - Fri Apr 27, 2007 6:49 pm

No problem!
Hope the DNS-lookup version is finished soon though ;)
So an update like this won't be necessary in the future.

And no, I probably didn't pick the right version :) i was kinda tired when i patched the ROM, so I'm not really sure which one i picked.
I should patch the right version though, because it can't save on my card either (R4DS)

#126874 - Jamba - Fri Apr 27, 2007 6:54 pm

Frigolit wrote:
I should patch the right version though, because it can't save on my card either (R4DS)


Please do :)

#126880 - Frigolit - Fri Apr 27, 2007 8:03 pm

And here it is ;)
http://www.digitalfractions.net/getfile.html/pub/beup_live_0.3e_update_2007-04-27.nds
Beup Live 0.3e with DLDI
DLDI patching, connecting to the MSN servers and access to the memory card seems to be working.
Tested with DS Lite and R4DS.
Enjoy!

#126881 - Jamba - Fri Apr 27, 2007 8:18 pm

Thank you :)

Loading settings, and emoticons ... but it didn't show any avatars :( [DLDI patched for Supercard SD]

#126882 - Frigolit - Fri Apr 27, 2007 8:27 pm

Weird, maybe there has been some change in the 0.3e version on where it stores the avatars or something.
As it can load the settings and the emoticons :P

#126883 - Jamba - Fri Apr 27, 2007 8:30 pm

Could be, I have never used 0.3e before, before i just used the first rein fat version of 0.3!

Update:

I downloaded the folders .rar from HtheB's site for 0.3e, and it recognised the default avatars from that, but still didn't list my own ones .... but renaming my ones to replace the defaults (e.g. 'Soccer Ball.png') worked! So it's a bit of a workaround but means custom avatars can still be used.

#126917 - moglenstar - Sat Apr 28, 2007 12:56 am

Thanks for the patch, however it seems that it breaks functionality of the touchscreen.

using a ds lite, supercard lite rumble, and beup_live_0.3_update_2007-04-26.nds
patched with supercard (lite) dldi, which worked for 0.3d

#126935 - Tikker - Sat Apr 28, 2007 6:02 am

Frigolit wrote:
And here it is ;)
http://www.digitalfractions.net/getfile.html/pub/beup_live_0.3e_update_2007-04-27.nds
Beup Live 0.3e with DLDI
DLDI patching, connecting to the MSN servers and access to the memory card seems to be working.
Tested with DS Lite and R4DS.
Enjoy!



It still throws the SSL connection errors for me

Originally when I was talking with HtheB about it, it's got something to do with @msn.com accounts

the @hotmail.com accounts work, but he had no clue at all why @msn.com did not


or can anyone with a @msn.com address connect?

#126946 - Sektor - Sat Apr 28, 2007 9:51 am

Frigolit's patched version works for me with @yahoo.com and @gmail.com address. Ink also works here. Tested on M3CF.
_________________
GTAMP.com/DS


Last edited by Sektor on Sat Apr 28, 2007 11:19 am; edited 1 time in total

#126947 - Frigolit - Sat Apr 28, 2007 9:58 am

I'm using a @gmail.com address, so it shouldn't be a problem :/

#126948 - Frigolit - Sat Apr 28, 2007 9:59 am

moglenstar wrote:
Thanks for the patch, however it seems that it breaks functionality of the touchscreen.


How exactly does it break the functionality of the touchscreen?

#126951 - moglenstar - Sat Apr 28, 2007 10:47 am

>> How exactly does it break the functionality of the touchscreen?

after switching to your update, touching anywhere on the touchscreen.. does nothing.

touching in email/password boxes does not open the keyboard, can't touch the tickboxes on login screen.

once logged in, can't change status/name, can't select people to talk to.

can navigate with dpad, but again, can't actually touch to select things.

#126954 - Sektor - Sat Apr 28, 2007 11:27 am

Supercard rumble sucks. The launcher is doing something wrong and breaking some arm7 (touchscreen) code. Try launching Beup through the latest DSOrganize or Moonshell (if they actually work on Rumble).
_________________
GTAMP.com/DS

#126957 - moglenstar - Sat Apr 28, 2007 1:45 pm

>> Supercard rumble sucks. The launcher is doing something wrong and breaking some arm7 (touchscreen) code. Try launching Beup through the latest DSOrganize or Moonshell (if they actually work on Rumble).

I can currently launch DSOrganize, and some other homebrew apps fine from the rumble, and then when i'm in DSO i can launch other homebrew apps fine.

currently using DSO 2.7 - everything patched with the supercard (microSD) dldi, and beup started up fine with full touch support prior to me trying this version with fixed ssl support.


the rumble isn't all bad.


Last edited by moglenstar on Sun Apr 29, 2007 10:52 am; edited 1 time in total

#126973 - GizmoTheGreen - Sat Apr 28, 2007 5:24 pm

Hey Frigolit, Im from sweden too ^^
varf?r frigolit? lol

anyway, what exactly did patch to get it to work?
_________________
Starter of the project TrueLoveDS :D
Will you find True Love?

#126978 - Link_of_Hyrule - Sat Apr 28, 2007 6:07 pm

well this is worthless to be because my email is msn my msn worked on the old no-fat version of beup i dont know why it doesnt work now i think microsoft has a different ip for msn addresses or something

#126990 - Tikker - Sat Apr 28, 2007 10:35 pm

Link_of_Hyrule wrote:
well this is worthless to be because my email is msn my msn worked on the old no-fat version of beup i dont know why it doesnt work now i think microsoft has a different ip for msn addresses or something


i think you're probably right

#126991 - Lick - Sat Apr 28, 2007 10:44 pm

Link_of_Hyrule wrote:
well this is worthless to be because my email is msn my msn worked on the old no-fat version of beup i dont know why it doesnt work now i think microsoft has a different ip for msn addresses or something


Is the source available yet?
_________________
http://licklick.wordpress.com

#126996 - Frigolit - Sat Apr 28, 2007 11:34 pm

Link_of_Hyrule wrote:
well this is worthless to be because my email is msn my msn worked on the old no-fat version of beup i dont know why it doesnt work now i think microsoft has a different ip for msn addresses or something


nope, no difference
i know people using @msn.* addresses, myself i'm using @gmail.com
all of them authenticate against the passport server, which hasn't changed ip again since my patch

otherwise you could try registering a @hotmail.com address just to see if that's working or not, otherwise it's probably something with your wifi or your internet connection

simply put, it would be just stupid to use a different server for another kind of e-mail address when all other e-mail addresses uses that server :P
however, microsoft never ceases to surprise me with their stupidity...

Good luck!

GizmoTheGreen wrote:
Hey Frigolit, Im from sweden too ^^
varf?r frigolit? lol

anyway, what exactly did patch to get it to work?

vet ej :D kom v?l inte p? n?got b?ttre p? den tiden

and i simply did a DNS lookup on login.passport.com (the Passport server) and replaced the IP in the binary data of the ROM
i know, ugly patch, but works for now ;)
it's only temporary until the Beup version with support for DNS-lookups is released

#127000 - Tikker - Sun Apr 29, 2007 1:59 am

Frigolit wrote:


nope, no difference
i know people using @msn.* addresses, myself i'm using @gmail.com
all of them authenticate against the passport server, which hasn't changed ip again since my patch

otherwise you could try registering a @hotmail.com address just to see if that's working or not, otherwise it's probably something with your wifi or your internet connection


I've got 2 accounts

one is @msn.com, the other is @hotmail.com

the @msn.com does NOT work, the @hotmail.com works just fine

it's not a local wifi issue

#127025 - Frigolit - Sun Apr 29, 2007 10:47 am

Tikker wrote:
I've got 2 accounts
one is @msn.com, the other is @hotmail.com
the @msn.com does NOT work, the @hotmail.com works just fine
it's not a local wifi issue


Okay, so Microsoft really are stupid then...
_________________
http://www.digitalfractions.net
#Frigolit @ irc.phractured.net
#Frigolit @ irc.quakenet.org

#127099 - Link_of_Hyrule - Mon Apr 30, 2007 12:09 am

i know its not a local wi-fi issue because my msn account worked before on my home wi-fi

#127485 - Penpal - Wed May 02, 2007 10:59 pm

This is the first time i've tried using Beup here, and i'm using the DLDI patched 4-27 version posted in the previous page. I'm using a SuperCard Lite, and i've tried the file patched and unpatched (using the DLDI file for the SCL).

I always just place the file straight into the card (f:/) and not in any subfolders. I've been able to get to the logon, but when I actually try it gives me "Starting Connection, Connected to the MSN dispatch server" but hangs forever at the "Doing Handshake" phase, and there's nothing I can do to stop it. I have a @hotmail account, as well.

Any help is greatly appreciated.

#127706 - zAlbee - Fri May 04, 2007 5:37 am

That probably means that you're not properly connected to the wireless access point.

I saw the same thing happen when clicking Use Custom (not firmware) settings, using a bad IP (in the wrong subnet). It tells you the network address is connected, but it doesn't really work. I fixed it by putting in the right IP.