Forum

> > CS2D > General > Super Hero Mod (1.1) By Blazzingxx
Forums overviewCS2D overviewGeneral overviewLog in to reply

English Super Hero Mod (1.1) By Blazzingxx

72 replies
Page
To the start Previous 1 2 3 4 Next To the start

old Re: Super Hero Mod (1.1) By Blazzingxx

SQ
Moderator Off Offline

Quote
Breakmaster is hosting all servers.

Its not crashed. Just server changed script several times. (One time then I removed UnrealT sounds)

old Re: Super Hero Mod (1.1) By Blazzingxx

Lee
Moderator Off Offline

Quote
here's a more efficient architecture for sh, instead of having to load and save into independent files, how about having a schema and using it to convert the users table into a string, this way you can ensure that the users file does not get corrupted.

old Re: Super Hero Mod (1.1) By Blazzingxx

SQ
Moderator Off Offline

Quote
I cant accept and change code...
I dont have bugs like that in my server.
Of corse ppl rarely lose their level then get high ping several times.

As you noticed on some servers is bug like : Godlike> godlike witch not restarting...

I cant fix that couse I dont have that bug and I cant watch into debug mode.

old Re: Super Hero Mod (1.1) By Blazzingxx

Lee
Moderator Off Offline

Quote
Blazzingxx has written
I cant accept and change code...
I dont have bugs like that in my server.
Of corse ppl rarely lose their level then get high ping several times.

As you noticed on some servers is bug like : Godlike> godlike witch not restarting...

I cant fix that couse I dont have that bug and I cant watch into debug mode.


There's a different between easy to design then making up excuses and good practice. By nature, bloating your directories with tons of files whereas one would suffice is not a manageable art of programming. Remember, plan out your system and look for the most optimized route to go, in this case, since the SH mod is memory centric, it would be intuitive to load all of the users at the beginning of the mod (lua does a wonderful allocation optimization to reduce any overhead) because god only knows when you would begin to need to create an administration system for SH that would allow you to modify offline players. Rather then looking through the directory to see if the usgn file exists, read it all over again, close it, and then update both the cached version AND the in game players, and then rewrite the file again the next time the guy scores a point, it's much better if one single step would suffice. Trust me, with a bit of refactoring and planning, you can size down your script to just 200 or 300 lines.

old Re: Super Hero Mod (1.1) By Blazzingxx

SQ
Moderator Off Offline

Quote
Agree.
I havent said that 1.1 is my last version
Yes , Im searching ways how to make minimal code for this mod.
Also in my plans are 50 heroes. So I think Array is the only way to use for each hero. Becouse each hero should have own number for each player.

old Re: Super Hero Mod (1.1) By Blazzingxx

Lee
Moderator Off Offline

Quote
Blazzingxx has written
Agree.
I havent said that 1.1 is my last version
Yes , Im searching ways how to make minimal code for this mod.
Also in my plans are 50 heroes. So I think Array is the only way to use for each hero. Becouse each hero should have own number for each player.


As we've talked before, look into bootstrapping the heroes into the memory post initializing the mod into cs2d. In otherwords, have the heroes as their own separate mods and load them after everything else have already initialized, this way you can customize the heroes both without hard coding them onto sh and allows the players to customize their heroes on the server. I've got a prototype from a while ago with a few priliminary ideas on how to implement a damage/level mod, an assist mod, and a in-game even broadcasting route, as well as an oop approach to sh, if I find it I'll post it here.

old Re: Super Hero Mod (1.1) By Blazzingxx

zaki_cn
User Off Offline

Quote
Hi Blazzingxx, my english is not very good ,but i think that you can understand me.I am using your mod,but my question is that my server have no wrench!But i see you upload pic ,there is some building in hero_stun,and i have played in other server, they have wrench in level 20,i am very like that,but i cant find wrench in your mod```please tell me why,thanks!If you have that mod with wrench!please trans me!thanks!My email adress:illusionzh@163.com!

old Re: Super Hero Mod (1.1) By Blazzingxx

zaki_cn
User Off Offline

Quote
oh,i will try it ```but i have played in the other server that they are team deadth mode,they have a skill in level 20 named wrench,wrench need skill points and one man only can build one turrent and the other.I guess that someone change your code,that's a good idea.


Yes!I have added a little code of your server.lua,i spend many time to find the item IDs...it can works!Are there some software for LUA?I edit it with txt,it is in confusion,but your codes are in order!Thanks!

st. wrong happens on the font,there are ?55200xxx before Exp level & the other.I have no idea.I have to look the script over again``

Why?I find that it happens as long as i change the code,i just add new menu"wrench",the error happens.

I have email the error pic to you,need your help!
edited 5×, last 20.07.09 10:15:56 am

old Re: Super Hero Mod (1.1) By Blazzingxx

SQ
Moderator Off Offline

Quote
First you should learn how to script with lua.
I think that you change not all script you need.
edited 1×, last 21.07.09 01:34:28 pm
To the start Previous 1 2 3 4 Next To the start
Log in to replyGeneral overviewCS2D overviewForums overview