DoaJCBlogger / Talk32

A lightweight unofficial Discord client
Other
49 stars 1 forks source link

can't build the app #12

Open devin-lo opened 1 year ago

devin-lo commented 1 year ago

Hi, I'm trying to build the app in Windows 10 Pro so that I can use Talk32 on my WinXP machine. But it seems that I can't even build it?

image

I have installed Windows SDK 7.1 by first uninstalling VC++ 2010 Redistributables, then installing the SDK, then installing the patch, then finally reinstalling the redistributables.

Is there something I did wrong? Or can you just send me one that's already built please?

DoaJCBlogger commented 1 year ago

You're missing ammintrin.h. This is a known issue with the VC++ 2010 compiler. I've attached a copy. You should also install the SP1 update. ammintrin.zip Fix problem when mex .pdf fatal error C1083 Cannot open include file ‘ammintrin.pdf

devin-lo commented 1 year ago

Hey! That helped to build it successfully, thank you for the quick reply! I had seen that issue on StackOverflow, but the way they linked to the upload on the Mathworks forum was broken.

Now, I'm having this issue in WinXP: Imgur

I have indeed used setenv /xp /x86 /release before building. I also ran the Command Prompt as Administrator.

Also, FYI I can't seem to find a VS2010 installer ANYWHERE (trustworthy).

DoaJCBlogger commented 1 year ago

I use the Windows SDK 7.1, not Visual Studio. If you want Visual Studio, I trust files.dog. You should check their MSDN collection. I don't know exactly what's causing the error but you might try deleting talk32.exe and building it again. Sometimes the manifest doesn't get added (the final step with "mt").

devin-lo commented 1 year ago

Rebuilding it didn't fix it :( I even tried doing the steps from the bat individually.

It opens fine in Windows 10 but not on XP.

Actually, is there any way to build directly on Windows XP? Does Windows SDK 7.1 even work on XP itself?

DoaJCBlogger commented 1 year ago

Yes, it runs on XP and that's partly why I use it. Would you like me to just give you a copy of the latest version?

DoaJCBlogger commented 1 year ago

If it still doesn't work after building it on Windows XP, send me a screenshot of all the files in the folder that talk32.exe is in so I can make sure that you're not missing anything.

devin-lo commented 1 year ago

Tried to build in XP, yeah still not working.

Imgur

If you can't figure it out, yes please send a copy of the latest version for me to try opening.

DoaJCBlogger commented 1 year ago

This copy is able to start on Windows 8.1. It's actually a 7-Zip file but GitHub doesn't let you upload *.7z files so I renamed it. Let me know if it works for you. Also, the messaging parts aren't ready yet but if you want to use the logger, you're going to have to create a JSON config file. I can help you do that tomorrow if you want.

talk32_20230320.zip

devin-lo commented 1 year ago

It works!! Thank you so much :)

devin-lo commented 1 year ago

Oh, now I have this error that there's no cache folder: Imgur1

Providing the console log for reference: Imgur2

DoaJCBlogger commented 1 year ago

Extract this to a folder called "Talk32" in your local AppData folder. Here is where it will be. There is also a CHM help file in the "docs" folder that explains the contents of the config file if you want to set up the logger, which is the only part that's ready for use.

Windows XP: C:\Documents and Settings[username]\Local Settings\Application Data\ Windows 7 and higher: C:\Users[username]\AppData\Local\

Also, be careful about uploading screenshots of the log since it might contain your authentication token which gives people full access to your account even if you have 2-factor authentication.

talk32_cache.zip

devin-lo commented 1 year ago

Hooray, adding the cache folder worked! I managed to get past the login screen now.

However, logging doesn't seem to work, as any positive number of entries I put into the logging_servers array in config.json makes Talk32 crash upon opening :(

Also, noted, I deleted the screenshot.

Thanks for putting up with me and my unintentional QA testing!

DoaJCBlogger commented 1 year ago

Can you send your config.json file?

devin-lo commented 1 year ago

config.txt Uploaded as TXT instead of JSON. Edits were made to this file exclusively in XP's Notepad.

DoaJCBlogger commented 1 year ago

Can you send me an invitation to "omg yesss fortnie" so I can see if it's something about the server? Also, is it crashing on Windows XP?

DoaJCBlogger commented 1 year ago

It took me a while to realize that it might be awkward to explain why I joined that server so we don't have to do that if you don't want to. I'm able to use the logger nonstop for multiple consecutive days without any issues so I don't know what's wrong.

DoaJCBlogger commented 1 year ago

One more thing: try adding an "assets" element to the server objects, like this:

"assets": "E:\\Documents\\discord\\assets\\monero\\"