dont listen to obscenitor. he always looks out for things to complain about. listen to the people who tell you exactly what they dont like and what the would rather like to see. i think they are right when they say that its propably better to not concentrate on nerfs but on buffs for the weaker demigods. though a few nerfs might be ok since the usual fight length is already short. its true that you need one name thats popular in the community or no one plays your mod, even if its ok.<
Uphax
you could include my debug script. it shows the content of variables (also tables and nested tables) and helps debugging by calculating the real linenumbers in the errormessages
i think you need to completely understand how the buffing works an where it is done. i cant help you with that but i can tell you a way how you might find what you need. first add a custom attribute to the table that doesnt affect others (unique name). then go to a place in the code where you think that this information should be available somehow. then you use the function PrintInformation(1) from the script i posted here during the last days. this will print out every table and nest
hm i dont know exactly but i think that blueprints are just normal lua files with only table definitions in it. i suggest you look into the mod that sorian made for the torchbearer. perhaps you can achieve something by setting merge=true... just look into his mod. the blueprint files are actually all loaded automatically and i dont know how the naming convention is. i think its also lua code that loads blueprints and that i have seen it somewhere when in added another type of angels s
so you rather wait half a minute for the map to reload? i mean i dont care but believe me: if you want to be really productive and test many things, then half a minute is a loooong time and everytime you have to hit ctrl+f10 it just sucks! in 30 seconds i have testet 2 more things by changing the code and hitting the run button while youre still stuck at the loading screen. thats not always possible but when it is you really gotta use it...
table.insert is a constant function is the tablename table.insert( , value) and table.insert( , key, value) are not quite comparable. its the same function but the use is different. table.insert appends a value to a table. its most often used when the table is an array! so you dont need to bother where to insert it, its just appended to the array and the key is the nummerical position of the value in the array. a different use of tables is
debugging can be a pain. not just that there is no documentation for the whole demigod code out there but also the error messages have meaningless linenumbers when you hooked a file and then there is an error in your code. so thats why i played around with luas debugging interface and wrote this script. this interface has its limitations so there is not always a function name available but there is almost always a sourcefile and a line! keep that in mind when you read the messages. fi
for learning lua modding is not a good start. get the lua sdk with scite. with this you can debug and you get an output in like seconds! you just press run and it runs your program.
funny guy. thats not possible!
i wouldnt go so far to say that modding is bad. well you can perhaps do things with it that shouldnt be possible but overall its great!
as far as i have tried it the lua where the keys are being set cannot be hooked/modded, but i didnt investigate it very far... perhaps its possible to edit them later ingame or reload them with changed settings
sry, no i cant. i dont know enough about notepad or installers to create one because i have never done that before. i uploaded a version that doesnt need to be installed and has everything onboard, but it seems to work only if notepad aint installed. else it tries to load the xml files from the installed version which of course doesnt work! i also included the user defined language made by tspauld notep
tspaulds work is propably better because you dont need updated executables and it has almost the same functionality. i didnt know that notepad has this function. anyway, i fixed two bugs. 1. folding works now. it doesnt 'see' code which is outcomented anymore 2. the moholua files that were loaded last time you worked on are now being loaded with the right lexer on the next start Demigod
this is the usual notepad++ with another lexer added (LexMohoLua.cxx). this could also be made as a plugin but the interface is too complex to simply create an addon so i recompiled the whole thing which was far easier. the lexer is just an edited LexLua.cxx to make # comments work and one other slight change so that the functions aren highlighted always (doesnt work 100% and cant be changed without completely changing the code). also all core functions are now being highlighted (like
the tester doesnt know import. says its a nil value. could it be that it doesnt work for this special lua version, since import is not a standard lua function.
hey, deadmg thanks for the tip. i didnt look for exception handling yet because i was busy trying to recompile notepad++ or scite with an edited lua lexer. compiling worked but then it threw an error right at the start which i didnt investigage further. then i got back to textadept which supports dynamic lexing by lpeg (a lua lexing library) and now im using that. this editor is also very easy to mod because many parts are written in lua but the downside is that its really just a very simple
the bejewled goggles will most certainly be taken by regulus players. how about something like this: generally give a range bonus of 2, remove fog of war for five seconds and give a 20% range bonus to all skills for that time. that would buff sniping.
i dont think that this item is so op. i mean you still see the flag turning. later on the defence is destroyed anyway...
i would like to create a list of differences between normal lua and demigods lua. so if you find something that doesnt work though it should or the other way around, post it here!
[quote who="Ptarth" reply="11" id="2455757"]You can freely edit existing mods while demigod is running and use the console and Ctrl+f10 to reload them (as Derog states). However, if you wish to add a new mod, you'll have to restart demigods.[/quote] that sometimes aint enough. i'm trying to build some really rudimentary form of a tower defense mod for others to go on with (because i dont have the time) and have to edit the conquest.lua. the problem is: if it cant be parsed, the game h
would be best to put these into one "how the game should be" mod :)
morpheas, use scite or notepad++ and f9 and strg+f10 for maprestart. it should be good enough.
in the lua code there is even a comment about that error, something like: "if [this and that] aint done, bad things happen after respawn". they already try to prevent that but it obviously didnt help at your computer ;)
what the docent said certainly hadnt holes in it. its rather my brain that has the holes. btw. i wasnt talking about text for a commercial product but about sourcecode of a mod for another mod and i mentioned above that you should give credit. i think that sourcecode aint comparable to text but rather to the information a text would transport. so if one found out that the earth is a pizza and would scream that out into the world then i couldnt say that i was the one who found that out
and there we are discussing intellectual property. the problem about most mods is that they are small. so small that there hardly is another way to achieve what the mod does (besides make it look different). some time ago we have learned at school that if you put something out into public without having a patent for it, it becomes "common knowledge" (dunno the word in english). that means if one just gives out something without explicitely saying how it should be used (license