lua is a script language and not compiled. i dont know too much about scripting languages but i assume whats theoretically possible is that the syntax itself could be tested. it means that something like a missing = would be made visible by parsing the code before the gamestart. but missing functions cannot be detected before runtime. thats the stuff which usually is being handled by a linker during compiletime and that thing doesnt exist for lua.
Uphax
[quote who="Zaldir" reply="5" id="2453681"]It doesn't require it, but I still think you should give credit to them if you use any of their codes. [/quote] of course you gotta give credit. thats why you should put something in the readme or the descripton or whatever, but when you ask it could last forever for the answer and they most often just say "of course", so save your time and begin to work.
i dont think that you can trick there anyhow. there is a whole folder of ui related luas and they propably made only that folder hookable for ui mods. what do you want to change about the ui for tournament mode? what are you trying to do?
obviously abilities has not been initialized. look for references to "abilities" and where it is set.
youre partly right, there is only one viable build (as you said). but that build is ok.
thats what i think about occulus :)
use notepad, notepad++ or scite.
ah thats a great start. now i wouldnt say anymore that there are only a few viable alternatives to chose. just go on editing the rest of the items and perhaps soon there wont be no-go items anymore.
first things first: lua for good work i suggest you get a good tool first. notepad++ or scite are good. if you visit the lua homepage lua.org you can download a development kit for lua which includes scite. that kit wont help you much with demigod since the debugger aint attachable (havent tried and certainly wont work) but the editor is good and you can learn lua from scratch. hooks: for modding you need to know and understand hooks. hooks are basically overrides of t
i already played with it online. must be on your side silverdust.
i think even the best modders arent that far to try to change the game mechanics itself. mrrappard and chiamory are propably actually the guys with the most knowledge. ask them.
[quote who="mrappard" reply="8" id="2451806"]Just use this. http://www.wingrep.com/[/quote] thanks alot :)
chirmaya it is. perhaps he is one of the developers or he knows a way to generate some sort of documentation out of the lua files. the biggest problem for me actually is to find the points where to hook in to do something because the windows search doesnt look into the lua files and i didnt spend too much time to find a way to search for strings in the whole lua folder automatically .
i think we should discuss that in the demigod chat channel. dunno if the people are civilized enough but we could try
you should ask the guy, who made that mana/hp on scrollover mod. i dont mean the hp/mana text mod but the one where you can see your mates hp and mana. i looked at the lua code and he seems to have good understanding of the API and thats what you need for such a mod which is btw. not as easy as it may sound.
what i wanted to achieve was that one of my own luas is loaded dynamically by an import. i dont think that this is possible through editing the gameprefs. well then i think i have to look for another way if its possible at all (what i currently doubt)
perhaps i did something wrong but can it be that these files arent moddable?
i dont know where i read it but someone said that only ingame changes are allowed. so you cant mod the lobby itself.
[quote who="regabond" reply="3" id="2450202"]But you should ask them first before releasing your mod.[/quote] would be polite but most open source licenses dont require that.
with activated cheats you have some commands available that could help you though i dont know what all these consoles do exactly. dont press alt+d, it kills the process and you have to restart demigod shift+f6 information about your own character shift+f7 . some useful information like fps strg + f10 . reload map and mods (at least something...) alt + f9 . some sort of debug console but it doesnt work for me. if this thing worked it would help a lot. st
as i have tested, the game seems to load the mod scripts while loading a map. thats ok for a usual game but during development it sucks since i have to restart a match all the time. is it possible to make the game reload a mod INGAME everytime i want it to do so? because then it would be like 20 times faster to develop. one could just make a change, hit a button and test the change. i mean its a scripting language so why cant we use it like one? also it would be nice if there was a way to deb
20 seconds is op but what about 5. i would like that. you could either throw in health or you can warp away. though against sedna with silence it would be useless.
indeed. i had 4 crashes while getting into lobbies and one ingame crash so far. especially the crash on entering lobbies is new.
nope, the scripting is the least work that has to be done to balance the game.
i think at first you should become familiar with lua itself. try to google some tutorials, hello world and so on... http://www.lua.org/download.html thats the page to start. download lua. scite is included and a nice editor as far as i can see. i have tested 2 others (textadapt and luaIDE 2010) and they were both crap/early stage. in scite dont forget to name your file .lua. else debug/run/compile wont work. http://www.lua.org/manual/5.1/ there you will