Commit Graph
1148 Commits
Author SHA1 Message Date
Light2 ac39628b29 fixed command crash 2014-04-07 19:57:21 +02:00
Treeku 3928d58448 cmdSvc now accounts for different cmdTable struct 2014-04-07 18:43:31 +01:00
Treeku 69da7a4abd Commands now account for different cmdTable struct 2014-04-07 18:31:13 +01:00
Treeku 5dbabe6982 CommandSvc reads all command tables (in priority) 2014-04-07 16:42:19 +01:00
Treeku 0bbf98e209 All command tables now get read 2014-04-07 16:31:23 +01:00
Seefo f3e2498e62 Fixed some errors in the Command Service 2014-04-07 10:32:25 -04:00
Treeku 615a998384 Made cooldowns more efficient
Isn't really necessary for them to have their own thread each.

There's an old trick from a time before thread pools were possible: System.currentTimeMillis().
2014-04-07 14:47:56 +01:00
Levarrishawk 7216987f13 More unnecessary distractive Content Development 2014-04-07 05:50:42 -04:00
Treeku 3e69dedfff Merge pull request #399 from Ziggeh/master
Commands - Fixed getters and setter for targetType
2014-04-07 10:37:57 +01:00
Treeku 2a9988847f Script syntax error 2014-04-07 10:37:11 +01:00
Ziggeh c1486c27fe Commands - Fixed getters and setter for targetType 2014-04-07 11:29:19 +02:00
Treeku e4d676f43d Added example conversation script
Made a simpler script that uses less code, so it's easier to grasp.

In most cases there will only be one ProsePackage.

Copy-paste friendly.
2014-04-07 10:08:41 +01:00
Treeku fbbd59b0ec Merge pull request #398 from Ziggeh/master
Fixed variable name in CommandService
2014-04-07 10:00:19 +01:00
Ziggeh 75df58038c Revert "Jedi - Fixed Force Throw and Spark"
This reverts commit e05a5b4bf5.
2014-04-07 10:48:33 +02:00
Treeku c8aeff3d1d Add OutOfBand constructor for simpler conv scripts 2014-04-07 09:46:12 +01:00
Ziggeh f221f02b59 Commands - Fixed minor variable naming error 2014-04-07 10:33:12 +02:00
Treeku b6045f85dc Added alias "afk" for "toggleawayfromkeyboard" 2014-04-07 09:29:19 +01:00
Treeku 127b5083af Merge pull request #395 from CharonInferar/SurveyFix
Fix at suspicion of concurrency problem in surveyingservice
2014-04-07 08:54:31 +01:00
Ziggeh 40e35e1bdf Merge remote-tracking branch 'upstream/master' 2014-04-07 08:38:59 +02:00
Treeku d7b51621a1 Commands check LOS & distance if correct type 2014-04-07 07:19:31 +01:00
Treeku 577bbdb23b More command service improvements 2014-04-07 06:41:32 +01:00
Treeku 3eeb1bb7d5 Fixed unreachable code 2014-04-07 06:06:39 +01:00
Treeku 7008b1fd9e Few command improvements 2014-04-07 05:54:20 +01:00
Treeku 44c4d8632c Fixed issue with returning combat commands 2014-04-07 05:22:44 +01:00
Treeku b89190fd97 Fixed invalid postures/states problem 2014-04-07 05:12:43 +01:00
Treeku 92b262d828 Fixed float error properly 2014-04-07 05:02:39 +01:00
Treeku 497f290e54 Fixed cast exception (maxRangeToTarget is a float) 2014-04-07 04:53:38 +01:00
Treeku 948f4db778 Fixed a few more errors 2014-04-07 04:45:59 +01:00
Treeku 3e46e6e7d5 Fixed byte adding error in command reading 2014-04-07 04:38:03 +01:00
Treeku 53c54b983e Fixed duplicate maxRangeToTargets 2014-04-07 04:32:03 +01:00
Treeku 0bc71493ee Fixed a few more things 2014-04-07 04:27:42 +01:00
Treeku 7558d65f3a Fixed a few things 2014-04-07 04:21:32 +01:00
Treeku 2fcc4dd24b Cooldowns only added if they are more than a 1 sec
It's probably not worth it otherwise.
2014-04-07 04:15:53 +01:00
Treeku 580daaa8eb Fixed null errors 2014-04-07 04:02:52 +01:00
Bronco69 97dfb85bd7 fix in Medic expertise
realized that the health buff is linked to the stamina box in expertise
http://i.imgur.com/hW0L0zp.jpg
ive chosen CL48 for mark 2 because you get initially mark 1 at CL48 too.
2014-04-07 04:25:56 +02:00
Bronco69 1f981fa388 fixes in Jedi expertise
multi expertise commands fixed
2014-04-07 03:18:46 +02:00
CharonInferar 31f20c7ac0 Fix at suspicion of concurrency problem in surveyingservice 2014-04-07 01:56:46 +02:00
Treeku 6e137ab561 Commands can have custom cooldowns again 2014-04-06 23:07:30 +01:00
Treeku 124fb6747f Minor cooldown change 2014-04-06 22:52:45 +01:00
Treeku 863176353d Forgot something 2014-04-06 22:44:26 +01:00
Waverunner d835bdb61c Merge branch 'master' of https://github.com/ProjectSWGCore/NGECore2 2014-04-06 17:42:21 -04:00
Waverunner 494bd4a8ad GMs can now get the accountId of the target (getplayerid) 2014-04-06 17:42:08 -04:00
Treeku 86e72f29f8 Commands refactor part 2. Read more...
- Commands no longer need to be registered.
- No need for alias registration.  Use core.callScript.callCommand() in the duplicate script.
- No need for GM cmd registration.  There is a column called godLevel for this.
- Command ranges were not checked, allowing buggy issues like buffs being applied from 2000m away!
- Buffs will be auto applied now to target or self without needing to be scripted.
- Target types and command types are in the table (whether the cmd should be used on you, ally target, enemy target or group) as described here https://github.com/ProjectSWGCore/NGECore2/issues/370 <-- This is going to save us months of wasteful scripting and combat bugs
- Invalid weapons are now checked
- Cooldowns now check for cooldown group rather than commandName
- HitType no longer needs to determine attack range; this info is in the commands table
- Locomotion is partially checked and states fully checked
- Command table breaks when it's found the command for efficiency

In general, we were hardly using any of the info in the commands table and instead struggling to script it and experiencing loads of bugs as a result.  It's a waste of time to script what is already there.
2014-04-06 22:40:02 +01:00
Treeku 0ff0c2657f Commands refactor part 1. Read more...
- Commands no longer need to be registered.
- No need for combat command registration.  This is detectable by if it has a value for characterAbility.
- No need for alias registration.  Use core.callScript.callCommand() in the duplicate script.
- No need for GM cmd registration.  There is a column called godLevel for this.
- Command ranges were not checked, allowing buggy issues like buffs being applied from 2000m away!
- Buffs will be auto applied now to target or self without needing to be scripted.
- Target types and command types are in the table (whether the cmd should be used on you, ally target, enemy target or group) as described here https://github.com/ProjectSWGCore/NGECore2/issues/370 <-- This is going to save us months of wasteful scripting and combat bugs
- Invalid weapons are now checked
- Cooldowns now check for cooldown group rather than commandName
- HitType no longer needs to determine attack range; this info is in the commands table
- Locomotion is partially checked and states fully checked
- Command table breaks when it's found the command for efficiency

In general, we were hardly using any of the info in the commands table and instead struggling to script it and experiencing loads of bugs as a result.  It's a waste of time to script what is already there.
2014-04-06 22:39:30 +01:00
Light2 87db82f6fa Merge branch 'master' of https://github.com/ProjectSWGCore/NGECore2 2014-04-06 22:58:01 +02:00
Light2 e6d336836c fixed action/health regen bug 2014-04-06 22:57:48 +02:00
Seefo a67012dd09 Merge branch 'master' of https://github.com/ProjectSWGCore/NGECore2 2014-04-06 16:31:46 -04:00
Seefo 584380503c Changed buff for Elder Jedi Oppressor Robe 2014-04-06 16:31:34 -04:00
Waverunner cc1ce8bf2c Merge branch 'master' of https://github.com/ProjectSWGCore/NGECore2 2014-04-06 16:30:14 -04:00
Waverunner 438c960d88 Buffs refactored to use DatatableVisitor on server load
Originally, everytime a new Buff instance was created, it would loop
through the Datatable Visitor everytime. Now it's only done once on
server startup and put into a buffMap. A copy of the base buff is then
done through the constructor of Buff class should a new instance of that
buff type needs to be created from the one inside the map.
2014-04-06 16:29:31 -04:00