Hello There, Guest! Login Register


Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Named Saber Crystals
#1
Just copy, add to serverobjects, build & enjoy!

If you update from unstable this is the src bit that extends the colour palette.

if (colorMax != 31) {
int finalColor = MIN(color, 30);
setColor(finalColor);
updateCrystal(finalColor);


Download

Git Commit
 
Reply
#2
Psst. Link down.

Was gonna check this out Wink
 
Reply
#3
FixedSmile
 
Reply
#4
I have everything installed fine, it seems. Crystals all load as red untuned. Where specifically should I be placing the

if (colorMax != 31) {
int finalColor = MIN(color, 30);
setColor(finalColor);
updateCrystal(finalColor);

at? It's the only thing I'm uncertain about.
 
Reply
#5
part of that code already exists in the serverobjects.cpp file. if you search for colorMax you should find it. should be a replace operation I believe. - Duff
 
Reply
#6
(2016-01-07, 10:57 PM)draychen Wrote: I have everything installed fine, it seems. Crystals all load as red untuned. Where specifically should I be placing the

if (colorMax != 31) {
int finalColor = MIN(color, 30);
setColor(finalColor);
updateCrystal(finalColor);

at? It's the only thing I'm uncertain about.

You just need to extend the crystal colour palette by changing finalColor to 30, line 187 in

MMOCoreORB\src\server\zone\objects\tangible\component\lightsaber\LightsaberCrystalComponentImplementation.cpp

And then "build config"

The actual file is in the zip DL with the correct pathSmile
 
Reply
#7
Thanks so much guys!!
 
Reply
#8
I am constantly getting a build fail error. I copied went:

workspace > MMOCoreORB > src > server > zone > tangible > component > lightsaber: PASTED LightsaberCrystalComponentImplementation (made a copy backup of the original and stuffed it on my desktop as a backup... in case)

Next files:

workspace > MMOCoreORB > bin > scripts > loot > PASTED: groups-PASTETHIS IN.lua & items-PASTETHIS IN.lua (Copied the two originals to my desktop under backups. Re-named the two files to remove the 'PASTETHIS IN off the titles).

Copied all individual files (the named sabers) into <groups> and <items> folders individually.

I do a build config and keep coming up with a build fail. Once I remove both groups.lua and items.lua and replace them with the originals that I backed up, it loads the build just fine. Am I missing something more, here? Thanks so much in advance.
 
Reply
#9
may have to look at this....but.....

the cpp file may be out of date, it may have been changed by the Emu team, so go and manually edit the line for the palette number (in a new stock file). Change it from 11 to 30 and build config.

The Lua files wont make any difference to the build, weather they're right or wrong so build first and then get the Lua loot files working.

Let me know how you get on and i'll look into itSmile
 
Reply
#10
Awesome! Thanks for the quick responses! And thanks for the time and effort you put into modding. I really hope I can get this one working (I've been missing my old Sunrider's Destiny and the life). I'll go try it now and see what works! Thanks again!
 
Reply
  



Forum Jump:


Browsing: 1 Guest(s)