The computer thinks my game is a virus.

A place to discuss things that aren't specific to any one creator or game.
Forum rules
Ren'Py specific questions should be posted in the Ren'Py Questions and Annoucements forum, not here.
Post Reply
Message
Author
User avatar
MoPark
Regular
Posts: 98
Joined: Sat Dec 31, 2011 7:05 pm
Projects: Kangaroo, Terminal Love
Location: DC
Contact:

The computer thinks my game is a virus.

#1 Post by MoPark » Wed Apr 11, 2012 5:48 pm

My problem might be too technical for this forum, but I might as well try asking here.

I am coding a terminal-based game in C. It's sort of like a visual novel, but not entirely.
Anyway, certain platforms think my game is actually a virus. Problem is, I don't see a consistent pattern for why they do.
This obviously is a major setback, because I want people to actually play it.

For context, I am using these non-standard libraries.

Code: Select all

#include "inc/fmod.h"   // Audio functions
#include "inc/fmod_errors.h"
#include <windows.h>    // Windows functions
#include <conio.h>      // _kbhit() and _getch() functions
The game does have a little bit of code where it reads/writes files, which is how I store save data and whatnot, and that might lead to an antivirus program thinking my game is malicious.

If this problem is beyond you, do let me know, and I'll seek out help at a more technical forum, but thank you for your responses!

User avatar
papillon
Arbiter of the Internets
Posts: 4104
Joined: Tue Aug 26, 2003 4:37 am
Completed: lots; see website!
Projects: something mysterious involving yuri, usually
Organization: Hanako Games
Tumblr: hanakogames
Contact:

Re: The computer thinks my game is a virus.

#2 Post by papillon » Wed Apr 11, 2012 6:37 pm

Depending on what exactly is reporting your game as a virus it may have nothing to do with your code. A number of overzealous 'protection' tools lately identify ANY unknown executable as potentially dangerous. That means, of course, that games made by indies are going to get smacked with the dodgy-stick.

It's also common for there to be temporary flareups of false positives if you're using the same *compiler* as someone who's written bad code, even if there's nothing wrong with your code itself.

You're better off investigating the problem on the antivirus end, there's nothing you can do that will guarantee your program is not flagged suspicious.

User avatar
MoPark
Regular
Posts: 98
Joined: Sat Dec 31, 2011 7:05 pm
Projects: Kangaroo, Terminal Love
Location: DC
Contact:

Re: The computer thinks my game is a virus.

#3 Post by MoPark » Wed Apr 11, 2012 10:35 pm

That's a good point. I'll have to include some disclaimer saying to ignore your antivirus. I have seen a computer though fully delete the executable on sight, which was incredibly annoying. As for compilers, I use MinGW, which is one of the more common choices. I can try using MSVC++ later on with the same code and see if that'll affect it, but yes, thank you for your input.

User avatar
Blue Lemma
Forum Founder
Posts: 2005
Joined: Sat Jan 25, 2003 2:32 pm
Completed: ToL, Shoujo Attack!, Lemma Ten
Projects: [RETIRED FROM FORUM ADMINISTRATION - CONTACT PYTOM WITH ISSUES]
Contact:

Re: The computer thinks my game is a virus.

#4 Post by Blue Lemma » Mon Apr 16, 2012 7:31 pm

I know in the case of Norton, you can submit a form that will remove your executable from their untrusted list if it's a false positive. A web search should yield some useful links (try including the terms "false positive" or "whitelist".) There should also be a button/option for more details when the flag pops up that will give a link. I know this because when I was about to release one of my games, my AV was flagging it for not having enough users. Talk about a Catch-22 since you can't get any users if it's getting flagged and removed when someone tries to use it!

You should only do this on your final release version and only if you expect a wide distribution outside your own personal circle. It's a bit of a pain.
“Among those who dislike oppression are many who like to oppress.”
- Napoleon Bonaparte


I've retired from forum administration. I do not add people to the "adult" group, deactivate accounts, nor any other administrative task. Please direct admin/mod issues to PyTom or the other mods : )

User avatar
redeyesblackpanda
Eileen-Class Veteran
Posts: 1006
Joined: Thu Dec 22, 2011 4:26 am
Projects: Eternal Memories, plot bunnies that won't die.
Organization: HellPanda Studios
Location: United States
Contact:

Re: The computer thinks my game is a virus.

#5 Post by redeyesblackpanda » Wed Apr 18, 2012 2:29 pm

Gah! Avast just thought Ren'Py itself was suspicious on my computer... :(
(All projects currently on a hiatus of sorts. I blame life.)
Tsundere VN
Not really checking the forums any more due to time constraints, so if you want to contact me, PM. I'll get a notification and log in. :mrgreen:
Also, I've been hit and run posting, which means I don't see many replies. If you want to respond to something I've said, also feel free to PM me.

NOTE: if you've got questions about vnovel or things like that, it's Leon that you should be contacting. Leon's been pretty much handling everything, but due to various reasons, I've had to withdraw entirely.

User avatar
jack_norton
Lemma-Class Veteran
Posts: 4067
Joined: Mon Jul 21, 2008 5:41 pm
Completed: Too many! See my homepage
Projects: A lot! See www.winterwolves.com
Tumblr: winterwolvesgames
Contact:

Re: The computer thinks my game is a virus.

#6 Post by jack_norton » Wed Apr 18, 2012 2:32 pm

When that happens for my games, I usually use this site: https://www.virustotal.com/
It checks your .exe using lots of antivirus. Obviously, if 99 antivirus says "safe" and 1 (Norton? lol) says is a virus, the players can understand who's telling the truth!
follow me on Image Image Image
computer games

User avatar
MoPark
Regular
Posts: 98
Joined: Sat Dec 31, 2011 7:05 pm
Projects: Kangaroo, Terminal Love
Location: DC
Contact:

Re: The computer thinks my game is a virus.

#7 Post by MoPark » Thu Apr 19, 2012 8:36 am

That is a really useful site, wow. It was able to get me a list of included functions, too, though I think the list in msvcrt.dll is a tad incomplete.

Code: Select all

fmodex.dll
	FMOD_Channel_GetMute, FMOD_Channel_GetPosition, FMOD_Channel_IsPlaying, FMOD_Channel_SetMute, FMOD_Sound_Release, FMOD_System_Close, FMOD_System_Create, FMOD_System_CreateStream, FMOD_System_GetVersion, FMOD_System_Init, FMOD_System_PlaySound, FMOD_System_Release, FMOD_System_Update

KERNEL32.dll
	DeleteCriticalSection, EnterCriticalSection, ExitProcess, FillConsoleOutputAttribute, FillConsoleOutputCharacterA, FreeLibrary, GetConsoleScreenBufferInfo, GetLastError, GetModuleHandleA, GetProcAddress, GetStdHandle, InitializeCriticalSection, LeaveCriticalSection, LoadLibraryA, SetConsoleCursorInfo, SetConsoleCursorPosition, SetConsoleScreenBufferSize, SetConsoleTextAttribute, SetConsoleTitleA, SetConsoleWindowInfo, SetUnhandledExceptionFilter, Sleep, TlsGetValue, VirtualProtect, VirtualQuery

msvcrt.dll
	__getmainargs, __p__environ, __p__fmode, __set_app_type, _cexit, _getch, _iob, _kbhit, _onexit, _setmode, _winmajor, abort, atexit, calloc, exit, fclose, fflush, fgetc, fopen, fprintf, fputc, free, fwrite, getchar, malloc, memcpy, printf, putchar, puts, rand, signal, srand, strcpy, strlen, time, tolower, vfprintf
I ended up getting a detection ratio of 1/42. Oddly enough, the one that flagged it down as malicious, but that one isn't the same as the antivirus my friend had when it deleted my game. Huh.

User avatar
jack_norton
Lemma-Class Veteran
Posts: 4067
Joined: Mon Jul 21, 2008 5:41 pm
Completed: Too many! See my homepage
Projects: A lot! See www.winterwolves.com
Tumblr: winterwolvesgames
Contact:

Re: The computer thinks my game is a virus.

#8 Post by jack_norton » Thu Apr 19, 2012 9:27 am

Antivirus have really become useless, IMHO. Just never download from a warez site if you want to be sure :wink:
follow me on Image Image Image
computer games

User avatar
Hijiri
Eileen-Class Veteran
Posts: 1519
Joined: Sun Mar 25, 2012 6:35 pm
Completed: Death Rule:lost code Overdrive Edition, Where the White Doves Rest-Tsumihanseishi
Projects: Death Rule: Killing System
Organization: MESI Games
IRC Nick: Hizi
Tumblr: mesigames
Skype: kurotezuka
itch: hijiri
Location: Los Angeles
Contact:

Re: The computer thinks my game is a virus.

#9 Post by Hijiri » Thu Apr 19, 2012 10:32 am

jack_norton wrote:Antivirus have really become useless, IMHO. Just never download from a warez site if you want to be sure :wink:
Thinking like that is bad. Those peiple who make viruses and malware get smarter and target people from legidemate sites. (ex. Gamespot had a problem a while back with a scareware program that hijacked your browser to their site at random.)
Image Image
"Perfection goal that always changes. Can pursue, cannot obtain."

User avatar
papillon
Arbiter of the Internets
Posts: 4104
Joined: Tue Aug 26, 2003 4:37 am
Completed: lots; see website!
Projects: something mysterious involving yuri, usually
Organization: Hanako Games
Tumblr: hanakogames
Contact:

Re: The computer thinks my game is a virus.

#10 Post by papillon » Thu Apr 19, 2012 10:34 am

Thinking that your antivirus program is always right is ALSO bad. :)

But yeah, simply browsing safely doesn't completely protect you. IT does help though!

User avatar
LVUER
King of Lolies
Posts: 4538
Joined: Mon Nov 26, 2007 9:57 pm
Completed: R.S.P
Location: Bandung, West Java, Indonesia
Contact:

Re: The computer thinks my game is a virus.

#11 Post by LVUER » Thu Apr 19, 2012 8:36 pm

And never forget that anti-virus (even a good reputable ones) could actually mess and damage your system. It happened to me more just several times, with different anti-virus too... So remember to back your files up regularly.
"Double the princesses, quadruple the fun!" - Haken Browning (SRW-OG Endless Frontier)

DeviantArt Account
MoeToMecha Blog (under construction)
Lolicondria Blog (under construction) <- NSFW

User avatar
PyTom
Ren'Py Creator
Posts: 15893
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: The computer thinks my game is a virus.

#12 Post by PyTom » Fri Apr 20, 2012 4:48 pm

LVUER wrote:So remember to back your files up regularly.
This is good advice for a lot of reasons. Things break.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom

User avatar
michi 18
Veteran
Posts: 487
Joined: Wed Apr 25, 2012 10:11 pm
Completed: none at the moment's notice
Projects: The Universal Hope;Wisdom Revival
Organization: Pridal Heavens Inc.
Location: Philippines
Contact:

Re: The computer thinks my game is a virus.

#13 Post by michi 18 » Wed Apr 25, 2012 10:41 pm

well yeah thats da point is their really a virus in diz game? Cuz i wana play it

User avatar
LVUER
King of Lolies
Posts: 4538
Joined: Mon Nov 26, 2007 9:57 pm
Completed: R.S.P
Location: Bandung, West Java, Indonesia
Contact:

Re: The computer thinks my game is a virus.

#14 Post by LVUER » Wed Apr 25, 2012 11:08 pm

If you make your own game and an anti-virus think it's a virus, you know it's not.

But if it's someone else's software, you could try scanning it with other kind of anti-virus... though in the end, it's all up to trust. If you trust the person making that game, you can a bit sure that it's not a virus.
"Double the princesses, quadruple the fun!" - Haken Browning (SRW-OG Endless Frontier)

DeviantArt Account
MoeToMecha Blog (under construction)
Lolicondria Blog (under construction) <- NSFW

User avatar
michi 18
Veteran
Posts: 487
Joined: Wed Apr 25, 2012 10:11 pm
Completed: none at the moment's notice
Projects: The Universal Hope;Wisdom Revival
Organization: Pridal Heavens Inc.
Location: Philippines
Contact:

Re: The computer thinks my game is a virus.

#15 Post by michi 18 » Wed Jun 06, 2012 9:28 pm

ok thanks though ............... i think i trust the maker of this game so ill play it

Post Reply

Who is online

Users browsing this forum: No registered users