Official Everybody Edits Forums

Do you think I could just leave this part blank and it'd be okay? We're just going to replace the whole thing with a header image anyway, right?

You are not logged in.

#1 2016-07-05 13:33:06, last edited by den3107 (2016-07-05 13:51:22)

den3107
Member
From: Netherlands
Joined: 2015-04-24
Posts: 1,025

[TIP] Everything in a single .exe

Alright, so I'm sure most people would prefer a single exe instead of a folder with DLLs and a exe.
Well, just made a quick google and found this: https://github.com/Fody/Costura
Just install via NuGet and all DLLs will be combined into the exe when building, nothing you have to do yourself.

Obviously this wouldn't be very useful when you also use files (like levels in a shift-bot), since you'll need a folder to keep those files nice and organised in anyway.
Now for shift levels this might not be very good (due to size, just an assumption though), but For a "banned players"-list for example, you can also just put it in the application resources/config, keeping your entire bot in a single exe still.

Now obviously for personal bots it isn't that terrible that you got that exe surrounded by DLLs and stuff since you know how it works.
For public bots however I'd say this is quite user-friendly. Single file, they can put it anywhere they want and barely any chance of junk of the bot remaining on their pc because they used a shortcut to the exe.

Offline

Wooted by: (3)

#2 2016-07-05 14:26:08

hummerz5
Member
From: wait I'm not a secret mod huh
Joined: 2015-08-10
Posts: 5,852

Re: [TIP] Everything in a single .exe

Good point. I hadn't seen this, will look into it for curiosity's sake.

Concerning your "shift levels" point: Also, I think capasha has some insight on using some AppData directory. Not a bad idea there, either, but I have no idea what he recommends about it.

Offline

#3 2016-07-05 15:15:32, last edited by den3107 (2016-07-05 15:17:37)

den3107
Member
From: Netherlands
Joined: 2015-04-24
Posts: 1,025

Re: [TIP] Everything in a single .exe

I crossed it since this post doesn't say it's bad practice or anything and in fact suggests it.
The shift levels were just the first example of a bigger "object" to save that came in mind.

Edit: Saving those files in AppData results in exactly what I said earlier: It will leave behind junk on your PC since when you delete the exe you won't think of going to AppData and delete the folder there too (unless you use an installer, but then your registry gets some junk when you uninstall it).

Offline

#4 2016-07-05 15:22:02

hummerz5
Member
From: wait I'm not a secret mod huh
Joined: 2015-08-10
Posts: 5,852

Re: [TIP] Everything in a single .exe

True. A user probably won't head there.

Offline

#5 2016-07-06 00:41:18

capasha
Member
Joined: 2015-02-21
Posts: 4,066

Re: [TIP] Everything in a single .exe

I use ILMerge. Works great. But too lazy to do it on my bots.

Offline

capasha1467762078611430

Board footer

Powered by FluxBB

[ Started around 1714713255.9805 - Generated in 0.235 seconds, 14 queries executed - Memory usage: 1.4 MiB (Peak: 1.51 MiB) ]