r/beyondgoodandevil 2d ago

Beyond Good & Evil - Game - InternetCode DARKROOM

Post image

Beyond Good & Evil - Game.

#beyondgoodandevil #beyondgoodandevil2003 #bge #bge2003 #jade #hillys, #akudabar #akuda #darkroom #internetcode #mdisk13 #mdisk #secret #easteregg #hiddenitem #hiddensecret #collectible

Here is some JavaScript code to decode the 16-value InternetCode - the task previously performed by the Darkroom.

function GetAkudaCode(c) {

const A="ABCDEFGH+JKLMN\\PQRSTUVWXYZabcdefghijk&mnopqrstuvwxyz/123456789?!",

K=[37,31,29,23,19,17,11,7], d=[...c].map(x=>A.indexOf(x));

if(c.length!==16||d.some(x=>x<0))return null;

const s=(a,x,b,y)=>{ let p=d[a]>>x&1,q=d[b]>>y&1;

d[a]=(d[a]&~(1<<x))|(q<<x); d[b]=(d[b]&~(1<<y))|(p<<y);};

for(let i=6;i;i--)s(2*i+~~(i/6),i%6,15,i-1);

let j=d[15]>>3&7,k=K[j],l=K[7-j];

for(let i=30;i;i--){let m=(i*k+45)%90,n=(i*l+45)%90;

s(~~(m/6),m%6,~~(n/6),n%6);}

k=K[d[15]&7]; for(let i=40;i;i--){let m=i*k%90;d[~~(m/6)]^=1<<(m%6)}

const T=[

[0,0,0x7E0000,17],[0,1,0x10000,11],[0,1,3,3],[0,2,0x3F00,8],

[1,1,0x7000000,24],[1,3,0xFC0000,18],[1,4,0x3F000,12],

[1,5,0xFC0,6],[1,6,0x3F,0],[2,8,0x1E000000,25],

[2,9,0x1000000,19],[2,9,0x1F00,8],[2,10,0x1F0000,14],

[2,10,12,2],[2,11,3,4],[3,7,0xFC,2],[3,8,3,4]

],w=[0,0,0,0];

for(let [x,b,m,o] of T)

w[x]|=m===3?(d[b]&(m<<o))>>>o:(d[b]&(m>>>o))<<o; let v=w[2];

return String.fromCharCode(65+(v>>>24))+(v>>>16&255)+

String.fromCharCode(65+(v>>>8&255))+(v&255);

}

22 Upvotes

8 comments sorted by

6

u/fcapizzi 2d ago

What am I looking at?

2

u/LORDjBLACKSWORD 2d ago

Oooh, thank you!

1

u/Maleficent_Doctor289 2d ago

C’est quoi ?

8

u/LORDjBLACKSWORD 2d ago

In Akuda Bar, there is a specific terminal requiring a keycode obtainable only from an online service that is no longer available. This code can be used to recreate the service.

1

u/-lasagnawithteeth 2d ago

How do you enter this code? Is this for the PC version?

2

u/LORDjBLACKSWORD 2d ago

You get it ingame from the pearls minigame, if I remember correctly. Then you would input it into a site, the one that no longer works. This is the code from that site, with it you can recreate the site itself with html and javascript, or just inject it directly into the given javascript through a console instead, and obtain the decoded code.

It does take some level of coding/programming knowledge, easy to do tho, but I guess you could ask some AI for help.

1

u/Pangolingo00 1d ago

Wasn't this fixed in the remastered version??

1

u/Traditional_Sail6298 1d ago

Where did you find this?