What if I distribute an exe without cleaning the console?

General discussion about LÖVE, Lua, game development, puns, and unicorns.
Post Reply
User avatar
togFox
Party member
Posts: 764
Joined: Sat Jan 30, 2021 9:46 am
Location: Brisbane, Oztralia

What if I distribute an exe without cleaning the console?

Post by togFox »

I'm just curious - I guess many ppl use PRINT() to send debug info to the console which is not visible when you distribute an EXE so just wondering if there is any real need to remove all the PRINT() statements prior to sharing an exe?

I make best efforts to do so, but there might be remnant statements in some obscure IF statement that gets missed.

Just curious.
Current project:
https://togfox.itch.io/backyard-gridiron-manager
American football manager/sim game - build and manage a roster and win season after season
User avatar
Davidobot
Party member
Posts: 1226
Joined: Sat Mar 31, 2012 5:18 am
Location: Oxford, UK
Contact:

Re: What if I distribute an exe without cleaning the console?

Post by Davidobot »

If you turn off the console popping up - there is no immediately obvious way to see the print statement. However, I believe that if they run your exe with a --console flag, it will cause the console to pop up.
PM me on here or elsewhere if you'd like to discuss porting your game to Nintendo Switch via mazette!
personal page and a raycaster
User avatar
togFox
Party member
Posts: 764
Joined: Sat Jan 30, 2021 9:46 am
Location: Brisbane, Oztralia

Re: What if I distribute an exe without cleaning the console?

Post by togFox »

Oh. I see. So that can be activated by the user? Even if exe? I'll be sure to take out passwords (joke)
Current project:
https://togfox.itch.io/backyard-gridiron-manager
American football manager/sim game - build and manage a roster and win season after season
User avatar
pgimeno
Party member
Posts: 3541
Joined: Sun Oct 18, 2015 2:58 pm

Re: What if I distribute an exe without cleaning the console?

Post by pgimeno »

It has potential to make the application slower. You can disable print() just in case:

Code: Select all

function print() end
User avatar
togFox
Party member
Posts: 764
Joined: Sat Jan 30, 2021 9:46 am
Location: Brisbane, Oztralia

Re: What if I distribute an exe without cleaning the console?

Post by togFox »

Hmm. I just declare that and job fine. Thanks.
Current project:
https://togfox.itch.io/backyard-gridiron-manager
American football manager/sim game - build and manage a roster and win season after season
Post Reply

Who is online

Users browsing this forum: Semrush [Bot] and 24 guests