08-11-2012, 11:07 AM
|
#1
|
|
|
Hiring C++
I'm using my medical study money to hire a C++ guy to finish AOX and MAME.
Both of these tasks are near complete and hopefully take around 1 weekend each to complete.
Before I post on some freelance sites, anyone here interested or know someone who is?
|
My Signature |
|
08-12-2012, 08:23 AM
|
#2
|
|
|
Re: Hiring C++
Quote:
Originally Posted by Kong
I'm using my medical study money to hire a C++ guy to finish AOX and MAME.
Both of these tasks are near complete and hopefully take around 1 weekend each to complete.
Before I post on some freelance sites, anyone here interested or know someone who is?
|
I did started working on, sorry for the slow response, but most of the times when i have some free time, i'm too tired to open the project and start working on it...
I have successfully rewritten some of the files, and by that i mean that it compiles successfully, runs fine and it looks fine.
I'm just using the gcc compiler, as i see no reason to work in visual studio... Maybe that's why i'm having problems with the curl libraries, dunno haven't figured it out yet, but most of the times i find a way :P
The files that i managed to complete so far with no errors are:
clifront.c
emuopts.c
emuopts.h
info.c
With some little support i could invest more time in this project and finnish it next week(13-20), despite this i do care about this website, and i'm trying my best 
Last edited by Incubator; 08-12-2012 at 08:26 AM..
|
My Signature |
|

08-12-2012, 10:12 AM
|
#3
|
|
|
Re: Hiring C++
I would pay around $15-$20 an hour to hire someone over seas to finish the projects.
I would gladly give you the same if you were able to put some time into it.
The AOX stuff should mostly be easier than the MAME stuff.
If you are interested I will add the AOX files to dropbox.
Thanks.
|
My Signature |
|
08-12-2012, 03:43 PM
|
#4
|
|
|
Re: Hiring C++
Quote:
Originally Posted by Kong
I would pay around $15-$20 an hour to hire someone over seas to finish the projects.
I would gladly give you the same if you were able to put some time into it.
The AOX stuff should mostly be easier than the MAME stuff.
If you are interested I will add the AOX files to dropbox.
Thanks.
|
That exceeds my expectations :P Because i was thinking somewhere around $100 for the whole project, and it's not that small of a project. And in my opinion paying by hour isn't the best idea in this case, so i will try to bring something to the table first.
It wouldn't be hard, but it's huge, and many objects, classes, variables were removed, so i have to backtrack the new objects and learn their attributes, methods...
btw, 141 does have classes, so it's in C++ not C, it's just not that much object oriented.
---------------
I don't think there's any need to share aox for now, first i should try to finnish the emulator.
|
My Signature |
|

08-12-2012, 05:24 PM
|
#5
|
|
|
Re: Hiring C++
Quote:
|
It wouldn't be hard, but it's huge, and many objects, classes, variables were removed, so i have to backtrack the new objects and learn their attributes, methods...
|
Yep. I was working on it at first and was able to do it but it was pushing my C limits and eventually drained all of my motivation to work on anything.
Generally what I do is determine an average hourly rate - example $15/hour.
Then create a list of tasks and ask how many hours they expect each task to take.
So if they expect 5 hours then the task is $75. If they finish early they make over $15/hour. If they finish slow then they make less than $15/hour. If I don't think the task is worth $75 then it is skipped. If they run into significant problems and it takes way more than originally expected then we can renegotiate but if that happens too often then I would find someone else.
I have the AOX project broken up into about 15 small tasks that should take less than an hour each. The mame project doesn't really break down into small tasks. It is just one big one.
I was expecting mame to cost much more than $100 and I am ok with paying you more than $100 if it means you can get it finished faster.
AOX is an easier project. If you don't want to switch gears that is fine, but just letting you know it is an option to start on the easier project first if you want.
|
My Signature |
|
08-14-2012, 05:35 AM
|
#6
|
|
|
Re: Hiring C++
i managed to implement successfully many thing in the new version, however i'm having difficulties with curl, are you sure it should work? also for some reason i couldn't compile older versions, i got some error saying some ..d3d.. errors, new version compiles just fine. Could you share a working/compiled version of mame141?
also if you're interested in looking at the errors of curl, i can show it to you through teamviewer. I'm using netbeans.
---------- Post added at 04:35 AM ---------- Previous post was at 03:03 AM ----------
I started the whole project in mame original, but it's no big deal in transfering the written code to netplay version, but now i tried to compile the netplay original version, to start packing things into it and i'm getting linking errors:
Code:
obj/windows/mame64/libocore.a(main.o):main.c:(.text+0x6a): undefined reference to `utf8_main(int, char**)'
Also, the patch won't do anything either, when i run it's acting like it would be waiting for some input.
So these are the things i'm having problems with, most of the code is rewritten, i just need to link successfully the original netplay version, include curl and apply patch, then i can copy the written code into it and start the testing phase.
Last edited by Incubator; 08-14-2012 at 05:37 AM..
|
My Signature |
|

08-14-2012, 12:28 PM
|
#7
|
|
|
Re: Hiring C++
I just formatted my computer. It will take me a day or two to get everything setup and test and fully answer your questions.
141 and 135 did compile for me. The netplay versions also compiled. Curl was working in 141. A different method was used in 135.
Curl is needed to communicate with the server. If you have an easier method for that you can use it but Curl should work.
The patch has to be the first step as it is looking for the original code. I can manually do add the patch. I have done it before.
I believe I got the d3d errors. I think only when compiling the netplay. I think to fix it I removed direct 3d from the make file. My memory is a little fuzzy.
|
My Signature |
|
08-14-2012, 01:01 PM
|
#8
|
|
|
Re: Hiring C++
Quote:
Originally Posted by Kong
I just formatted my computer. It will take me a day or two to get everything setup and test and fully answer your questions.
141 and 135 did compile for me. The netplay versions also compiled. Curl was working in 141. A different method was used in 135.
Curl is needed to communicate with the server. If you have an easier method for that you can use it but Curl should work.
The patch has to be the first step as it is looking for the original code. I can manually do add the patch. I have done it before.
I believe I got the d3d errors. I think only when compiling the netplay. I think to fix it I removed direct 3d from the make file. My memory is a little fuzzy.
|
I figured out the d3d error, i had to download earlier build tools for mame compilation. however, then it stops at a later phase saying:
gmake: *** No rule to make target `obj/windows/mame64/emu/uismall.fh', needed by `obj/windows/mame64/emu/rendfont.o'. Stop.
weird...
As for the patch, i tried to patch the original version before doing anything to it, and it still didn't show any sign of data processing. I will see if i can find some other solution if can't fix curl. Maybe it would be a good idea to share the AOX stuff, so i can work on it and maybe put this on hold until you put things back to normal.
Or you could maybe look at it through teamviewer, and see if i'm doing something wrong, i'm up on facebook now.
Last edited by Incubator; 08-14-2012 at 01:27 PM..
|
My Signature |
|

08-14-2012, 02:05 PM
|
#9
|
|
|
Re: Hiring C++
I don't have much computer time this week so let's put the mame stuff on hold.
You do have to have the build tools form the correct date. MAME updates them fairly often.
I've never seen this error.
Quote:
|
gmake: *** No rule to make target `obj/windows/mame64/emu/uismall.fh', needed by `obj/windows/mame64/emu/rendfont.o'. Stop.
|
Quote:
|
Maybe it would be a good idea to share the AOX stuff, so i can work on it and maybe put this on hold until you put things back to normal.
|
Good idea.
I shared the IE version of AOX.
Compile in Visual Studio.
After you compile you will need to register the DLL. Close IE and press Windows Key + R to open run prompt and in run prompt paste
regsvr32 c  arcadeox.dll
Change the path to the dll that you just built
then press enter and the new plugin will be installed in IE.
The AOX temp path is
%LOCALAPPDATA%low\arcadeox\
That can be pasted into a run prompt to reach the folder.
Here are the aox tasks. I will probably need to explain most of them more. Some of them will be very hard if not impossible.
I think it will be easiest to do in this order (The top of this list should be easy. The bottom is probably impossible.)
10
11
6
3
7,8,9 These 3 should be grouped together.
1
4
If the html page causes an error it will open a javascript alert box which is hidden behind the page. Press Alt to bring the alert box to the front.
1. JavaScript alert boxes are hidden. You have to press Alt to bring them into view. This will probably be difficult to fix so put it off until the end.
Test url
http://www.third.arcadeox.com/harris1-2.htm
2. This is already finished.
3. Hitting refresh on the test link should cause it to delete the folder %LOCALAPPDATA%low\arcadeox\ third.arcadeox.com\super-nintendo but instead it causes it to put a read only lock on the contents of the folder which causes an error when the page reloads. After the browser is completely closed it will release the lock and delete some of the files in the folder but not all of them.
Test link
http://www.third.arcadeox.com/harris3-9-10.htm
4. The proxy needs to be tested but I think it is working on XP. It does not work on Vista or Win7. If possible please test on XP and try to fix on Vista/Win7.
I will need to explain this more later and this will probably be impossible or at least very tricky.
Test link
http://www.third.arcadeox.com/harris4-5.htm
5. Skip.
6. Add option to create CSV list of crc and file size for all files in folder named "%LOCALAPPDATA%low\arcadeox\server". Output will look like "filename, CRCvalue, FileSize" and be sent to javascript where the html will display the results.
Test link
http://www.third.arcadeox.com/harris6.htm
7. When the game is in embeded window onsize is used to toggle the embed and to keep the game aligned when the window is resized. Onsize is also triggered when scrolling which causes a flicker effect because onsize is repeatedly called. Please fix the flicker effect caused by scrolling. Either by finding another solution besides onsize or making a hack that disables it when scrolling. I understand that this might not be possible. Link above is not good for testing this issue.
http://www.third.arcadeox.com/harris7-8.htm
8. I would like to use window onmove to preform the same embed toggle to fix alignment when the window is moved. But Windows prevents the plugin from detecting wm_move or javascripe onmove. Please look for an alternative to fix the alignment on move. A good solution might not exist.
Use the test link from 8.
9. When the game is first loaded and then embeded into the page it causes a flicker where the game window bounces around. Please prevent this so it looks more smooth. Ideally if it is to be embeded then you would never see it out of the window.
Use test link from #3.
10. There is an error in nFileIndex of
::SendMessage(mhwnd, WM_USER_DOWNLOADPROGRESS, PercentDownloaded, nFileIndex);
It should send a number to DownloadProgress in the html page but does not.
Use test link from #3.
11. Encrypt the parameters passed from html.
I would like to use this Code Examples -> PHP Function to Encrypt/Decrypt a string without a known key. The string itself has his own different key for every character. or something similar to encrypt the javascript variables being passed to the plugin. I think this is the C code required to do so.
string ENCRYPT_DECRYPT(string Str_Message) {
int Len_Str_Message = strlen(Str_Message);
string Str_Encrypted_Message = "";
for(int Position = 0; Position < Len_Str_Message; Position++){
// long code of the function to explain the algoritm
//this function can be tailored by the programmer modifyng the formula
//to calculate the key to use for every character in the string.
int Key_To_Use = ((Len_Str_Message + Position)+1); // (+5 or *3 or ^2)
//after that we need a module division because can´t be greater than 255
Key_To_Use = (255 + Key_To_Use) % 255;
char Byte_To_Be_Encrypted = Str_Message.substr(Position, 1);
int Ascii_Num_Byte_To_Encrypt = (int)Byte_To_Be_Encrypted;
char Xored_Byte = Ascii_Num_Byte_To_Encrypt ^ Key_To_Use; //xor operation
string Encrypted_Byte = (char)Xored_Byte;
Str_Encrypted_Message += Encrypted_Byte;
//short code of the function once explained
//$str_encrypted_message .= chr((ord(substr($str_message, $position, 1))) ^ ((255+(($len_str_message+$position)+1)) % 255));
}
return Str_Encrypted_Message;
} //end function
Test link
http://www.third.arcadeox.com/harris11.php
If you can work on this right away then I can pay you. Just let me know what you think is fair or how much time it took and I will gladly pay you.
Thank you.
|
My Signature |
|
08-15-2012, 10:44 AM
|
#10
|
|
|
Re: Hiring C++
i fixed nr.10
However, i'm not sure if will be able to do many of these, as i never seen windows programming before, i only worked with linux 
Just saying to not expect much, but i will try :P
|
My Signature |
|
08-15-2012, 09:42 PM
|
#11
|
|
|
Re: Hiring C++
Lucky me I use unix and windows (I can't use mac osx though).
|
|
|
08-15-2012, 09:53 PM
|
#12
|
|
|
Re: Hiring C++
Code:
sarcasm("cool use of code tags bro");
|
My Signature |
|
08-16-2012, 06:10 AM
|
#13
|
|
|
Re: Hiring C++
Quote:
Originally Posted by FudgyDRS
Lucky me I use unix and windows (I can't use mac osx though).
|
isn't mac osx unix? 
---------- Post added at 05:10 AM ---------- Previous post was at 03:59 AM ----------
i'm almost done with nr.6
it loops through the files sends the filename, crc, size to javascript and prints it if PrintValues is set to 1
i have a few questions though:
-by csv list, you mean it should save it into a file, or that will all be done in javascript, and i should just send the arrays there?
-is it fine if i used GetCrc32() to generate crc?
-what kind of files will be stored in the server folder? files of the same filetype, or anything? even files with filenames like: .foo, foo
-is there a small limit of files int there, so i can define the array's size, or do i have to count the files first and allocate dynamically?
-are there subdirectories as well, so i have to read recursively?
i also fixed a few small things on the way, for ex PROP_ENTRY("PackageTemp", 10, CLSID_NULL) had id of 3, which already existed.
Last edited by Incubator; 08-16-2012 at 06:23 AM..
|
My Signature |
|

08-16-2012, 03:33 PM
|
#14
|
|
|
Re: Hiring C++
Quote:
|
-by csv list, you mean it should save it into a file, or that will all be done in javascript, and i should just send the arrays there?
|
Just send the arrays to javascript. I shouldn't have mentioned CSV.
Quote:
|
-is it fine if i used GetCrc32() to generate crc?
|
yes
Quote:
|
-what kind of files will be stored in the server folder? files of the same filetype, or anything? even files with filenames like: .foo, foo
|
Anything.
Quote:
|
-is there a small limit of files int there, so i can define the array's size, or do i have to count the files first and allocate dynamically?
|
Dynamic please.
Quote:
|
-are there subdirectories as well, so i have to read recursively?
|
No.
Quote:
|
i also fixed a few small things on the way, for ex PROP_ENTRY("PackageTemp", 10, CLSID_NULL) had id of 3, which already existed.
|
OK. Thank you.
|
My Signature |
|
08-17-2012, 08:47 AM
|
#15
|
|
|
Re: Hiring C++
i'm having problem sending arrays to javascript, i tried using safearrays, but javascript came up with unknown type, and sometimes it even crashed. Do you think it would be fine to just send a long array of bytes(string) and explode it in javascript?
It would still be dynamically allocated, so the result would be exactly the same, i can't see any problem with it, and it's more portable...
The javascript would look like this:
Code:
function PrintValue(File, CRC, Size)
...{
....var fArray = File.split(':');
....var cArray = CRC.split(':');
....var sArray = Size.split(':');
....
....var s1 = new String("PrintValues Should Appear Here ");
....var s2 = new String();
....var i;
....for(i = 0; i<fArray.length-1; i++) {
.....var s2 = s2.concat(fArray[i] +", "+cArray[i]+", "+sArray[i]+"<br />");
....}
....document.getElementById("csv").innerHTML = s1 + s2;
...}
If it's okay, then nr.6 is done as well, it works as expected, if not, then i will have to search for further answers, but i already spent hours searching for a good one.
btw, it's fired on Initiate(), i believe that's the right event...
---------- Post added at 07:47 AM ---------- Previous post was at 06:00 AM ----------
btw, at nr.11,
do you mean the parameters from the LoadGame() function?
because i don't really see the point in that
Last edited by Incubator; 08-17-2012 at 07:08 AM..
|
My Signature |
|

08-17-2012, 10:32 AM
|
#16
|
|
|
Re: Hiring C++
Quote:
Originally Posted by Incubator
Do you think it would be fine to just send a long array of bytes(string) and explode it in javascript?
|
Yes. I updated the test html page with your JS so you can test it.
Quote:
|
i already spent hours searching for a good one.
|
If you ever run into a problem like this let me know before spending time researching. Rewriting the JS is a perfectly legit option.
Quote:
|
it's fired on Initiate(), i believe that's the right event
|
Yep.
Great. Thanks.
Quote:
|
do you mean the parameters from the LoadGame() function?
|
Yes.
Quote:
|
because i don't really see the point in that
|
 There is a point.
Key_To_Use will eventually be hidden in the domains.txt file. It is not perfect security but someone has to figure out the encrypt function and where the key is hidden and then grab the key. That will stop most people.
Reasons for the encryption
Sometimes you will want the user to not have control such as with
Refresh, Crc, Size, Temp, and CmdArgs.
And sometimes you will want to hide AssetFile and Package from them. Which they could get with a network sniffer but it will stop most.
AOX2 is not being designed with just RU in mind. I want it to have as many uses as possible so I can get other sites to use it.
After you get it working as is I'd like to combine all of the LoadGame variables into one string and then explode it in the plugin.
|
My Signature |
|
08-17-2012, 11:04 AM
|
#17
|
|
|
Re: Hiring C++
the page is missing this code as well
Code:
<script for="arcadeox" event="PrintValue(File, CRC, Size)">
...PrintValue(File, CRC, Size);
..</script>
i think i know what's the problem in 3, but the emulation isn't working and it's hard to test it.
this is what you meant in 4?
whenever it loads a game, it freezes. I'm using win7
Last edited by Incubator; 08-17-2012 at 11:09 AM..
|
My Signature |
|
08-17-2012, 01:23 PM
|
#18
|
|
|
Re: Hiring C++
Quote:
|
the page is missing this code as well
|
added.
Quote:
|
but the emulation isn't working and it's hard to test it.
|
What do you mean? It is working for me. What happens?
---------- Post added at 01:17 PM ---------- Previous post was at 01:11 PM ----------
#4. The proxy which is a seperate dll that is created by the aoxproxy project is designed to add security and prevent the plugin from running dangerous code.
Windows Vista and Windows 7 just natively provide most of the function of aoxproxy. Windows XP does not. It needs to be tested but I think aoxproxy is working on Windows XP. If you have access to XP then you can test it, if not then I will get a copy of XP.
Windows Vista and Windows 7 will not run the proxy code. I have talked to some other people about it and I think the only way to do so is to create a driver which will be cause most anti-virus programs to flag it as a false positive virus.
I think #4 is about as good as it is going to get but is worth looking at to see if you have any ideas.
It should not freeze. It should be working and is working on every computer I have tested on. Was it freezing for you before you made any changes?
---------- Post added at 01:23 PM ---------- Previous post was at 01:17 PM ----------
I just rebuilt the IE project in the dropbox folder and tested the DLL. It is working for me. Try registering the DLL in the dropbox folder and see if it works for you. If it doesn't then that is going to be scary.
|
My Signature |
|
08-17-2012, 01:42 PM
|
#19
|
|
|
Re: Hiring C++
Quote:
Originally Posted by Kong
added.
What do you mean? It is working for me. What happens?
---------- Post added at 01:17 PM ---------- Previous post was at 01:11 PM ----------
#4. The proxy which is a seperate dll that is created by the aoxproxy project is designed to add security and prevent the plugin from running dangerous code.
Windows Vista and Windows 7 just natively provide most of the function of aoxproxy. Windows XP does not. It needs to be tested but I think aoxproxy is working on Windows XP. If you have access to XP then you can test it, if not then I will get a copy of XP.
Windows Vista and Windows 7 will not run the proxy code. I have talked to some other people about it and I think the only way to do so is to create a driver which will be cause most anti-virus programs to flag it as a false positive virus.
I think #4 is about as good as it is going to get but is worth looking at to see if you have any ideas.
It should not freeze. It should be working and is working on every computer I have tested on. Was it freezing for you before you made any changes?
---------- Post added at 01:23 PM ---------- Previous post was at 01:17 PM ----------
I just rebuilt the IE project in the dropbox folder and tested the DLL. It is working for me. Try registering the DLL in the dropbox folder and see if it works for you. If it doesn't then that is going to be scary.
|
It didn't work before i made any changes to it, i tested all the links when you sent me the files, i just didn't take it into consideration, i thought it has something to do with the problems you mentioned. I'm not home right now, and i don't have a laptop, so i can't test it, but as soon as i get home i will, and i will confirm it. The emulator freezes after 1-2 seconds when it loads and the browser as well. I will install virtual box and xp on it, maybe vista to and see how does it work on them.
|
My Signature |
|

08-17-2012, 02:31 PM
|
#20
|
|
|
Re: Hiring C++
If the current dll in the dropbox freezes for you then try replacing EnumWindowsProc in arcadeoxcontrol.cpp with this and see if it works.
Code:
int CALLBACK EnumWindowsProc(HWND hwndIn, LPARAM param)
{
DWORD pID;
DWORD TpID = GetWindowThreadProcessId(hwndIn, &pID);//get process id
HWND hWnd = hwndIn;
BOOL bRet = FALSE;
while (TpID == (DWORD)param)
{
apphwnd = hWnd;
bRet = TRUE;
HWND parentWnd = GetParent(hWnd);
if (! parentWnd)
break;
hWnd = parentWnd;
TpID = GetWindowThreadProcessId(parentWnd, &pID);
}
return bRet;
}
|
My Signature |
|
08-18-2012, 04:52 PM
|
#21
|
|
|
Re: Hiring C++
Alright, i just got home, so i tested it.
I couldn't run your version of dll, because my windows is 64bit and it's not compatible:
The module "C  ..." may not compatible with the version of Windows that you're running. Check if the module is compatible with an x86(32-bit) or x64(64-bit) version of regsvr32.exe
However, i did download the source again, compiled as it was, and it's the same, it freezes just like before and replacing the code didn't help either...
|
My Signature |
|
08-18-2012, 05:22 PM
|
#23
|
|
|
Re: Hiring C++
Quote:
Originally Posted by Kong
|
No, it does not, it stops working instantly after loading the page.
I'm going to take a look at it now.
btw, you added the new code to nr6 but removed the old one, the function :P
|
My Signature |
|
08-18-2012, 05:31 PM
|
#24
|
|
|
Re: Hiring C++
I assume you could play games on the site in IE before installing the beta right?
Let me know if you think digging up older versions will help. If we find one that works then we could compare to the one right after it and see what changed.
Quote:
|
btw, you added the new code to nr6 but removed the old one, the function :P
|
Fixed.
|
My Signature |
|
08-18-2012, 06:42 PM
|
#25
|
|
|
Re: Hiring C++
Quote:
Originally Posted by Kong
I assume you could play games on the site in IE before installing the beta right?
Let me know if you think digging up older versions will help. If we find one that works then we could compare to the one right after it and see what changed.
Fixed.
|
I never use IE, unless i'm forced to, i really hate it, so i never tested the site in it. But now that you mentioned it, i tried it, and the funny thing is that it doesn't do anything, it just hangs at loading... please wait.(altough, the animation stops), it doesn't give me any error, or 'stopped working' message.
Sure, why not, anything that helps fixing it.
btw, int nr6 the function is called PrintValue and in the script it was written for=PrintValues
I originally renamed it because it was conflicting with another function. I uploaded the html to the harris folder.
|
My Signature |
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 08:41 PM.
|