DeadMG

DeadMG

Joined Member # 3138820
51 Posts 219 Replies 14,509 Reputation

Hai everybody - Ptarth made a help-me post on the SupCom/FA modding community boards, so I thought I'd drop by and see what I could do to help. I've been modding the moho engine in Lua since November 2006. I'm a student now so oodles of time to help you guys out. Forkthread does not cause a simultaneous function to be run. It adds it to a list to be run at the next tick. The costs of actually forking a hardware thread are excessive, if you allow it to be called so trivially. Lua does

519 Replies 1,099,715 Views

Tester gonna be posted soon then. Derog: In Conquest.lua, just use local ok, msg = pcall(doscript, "Filepath") if not ok then LOG(msg) doscript("old conquest.lua filepath") end http://www.filefront.com/15009705/lua_pftest.exe This will attempt to launch test.lua in the same directory. Any errors will be output to the console window. Both #comment and continue loo

21 Replies 6,561 Views

From my experience as a long-time SupCom modder, there was little issue here. Typically, actual code is a negligible resource when it comes to mods, and resources like art are much more valuable. Partly, this is because most mods require no complex code at all, and anyone who's read the Lua manual (and caught up on Demigod's systems) should be able to write virtually any mod. Not just that, but it's common that people will ask for technical support for a piece of code, and end up have it near

18 Replies 7,062 Views

Regular Lua actually has quite a few pitfalls when you attempt to export C++ systems, because it's a C library, so it doesn't support critical C++ features like templates and object orientation (from the API side anyway, e.g. you can't expose a member function). However, the actual syntax compared to a standard Lua 5.1.4 build is negligible, and I have a personal version with #comments and suchlike in it. I could post a "tester" exe if you like. It's generally bad practice to use #com

21 Replies 6,561 Views

table.insert and table.remove use numerical keys. table.insert(table, value) is correct. If table.insert worked like that, what would be the point compared to using table[key] = value? I checked the lua.org documentation, and it does specify optionally to add the key for (table, key, value) but I have never seen it used this way and it's perfectly possible that it doesn't function this way in Lua 5.0.1 (Demigod's Lua), especially since there is no point to it compared to tab[k] = v. t

8 Replies 35,142 Views

If you install Demigod to a different hard drive, then reinstall Windows, Impulse will register it as corrupt. What exactly is the point of allowing the user to install to different drives if it's still tied to Windows? I am not going to re-install the game for the tenth damn time because I reinstalled Windows. Severely pissed off.

1 Replies 1,062 Views

Some of the modders in the SupCom mod community have made some abysmal code that causes problems with compatibility even now, so I'mma write a quick tutorial here on how to make your mod compatible. #1 Tables. You can recognize a table by the use of {}. This marks a table constructor. Tables are passed by reference- that is, if you pass a table to a function, the table is the same table, and not copied. Table constructors can contain fields, like this:[code]{ &nb

8 Replies 35,142 Views

I think that the configuration of Ready to Play was far too involved, and a lot of the data was too subjective to be of use. I think that instead of asking the user about their rig, it should just pull the CPU, card and RAM from Windows, for example. The preferences thing was very annoying too- why on earth did I have to sort by ALL of them? Shouldn't there be an "I don't care" option? Moreover, you couldn't re-order your preferences, so I twice had to undo the list and re-do it, and the anim

1 Replies 1,627 Views

Drugfreeboy: He doesn't have a point at all. Noob vs Pro is completely subjective, and with custom games as ranked, there's no way to judge your current skill instead of your skill where you played the most games, especially considering how shitty it is because you can just make whatever settings you like and still get your win ranked. On the other hand, when you're a team of premades, then it's a fact that everyone on the team knows each other and plays together regularly.

85 Replies 46,829 Views

I'm new to the forum and world, if you couldn't tell Well let me surprise you, which is that when you're very good at a game, it's incredibly irritating to lose because your ally sucks, or the enemy team are friends and didn't tell you. Learn to play, then come back.

10 Replies 6,485 Views

That's not a hole at all. You've legitimately sent commands, and had their results processed. There's no glitch in that. It would also totally destroy the connection of the other players. This guy must be using an exploit in-game to generate the gold, because there's no way to insert code into the games of others. I've been reading the thread and the entire argument of Haree78 and DroopyTheDog is that maybe not everything is checked. Well, I've got news for you, which is that everythi

36 Replies 81,413 Views

Removal is a bad idea, dying at level 1 or 2 can be easily overcome, I believe gold is decided by the killer's level and you only get around 600 in the beginning of the game, which will be an advantage but nothing huge. I wouldn't mind a bit of a decrease however. UB weak? Haha you've no clue what you're saying there. That's totally rofl, because gold is decided by the killed's level.

33 Replies 5,181 Views

Premades shouldn't happen in custom games because there's no reasonable alternative.. let's be honest, playing Pantheon's much worse. Fact is, if you've got a premade, then put it in the title so other premades join or only people who want to play a premade. It's not a big thing to ask for people to warn their potential opponents that they're pre-arranged.

73 Replies 171,333 Views