Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Poll

Fanfiction stuff?

Very yes
Yes
Indifferent
No
Very no

Pages: 1 ... 21 22 [23] 24 25 ... 88

Author Topic: Sparking!!! Dragon Ball Mod (0.47, rolling releases): Half a Raditz  (Read 322832 times)

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: Sparking!!! Dragon Ball (Z) Mod: Come out, Dragon! (0.34.11)
« Reply #330 on: February 04, 2013, 03:41:05 pm »

Oh damn it.

Does it spit out an error?

KingofstarrySkies

  • Bay Watcher
  • It's been a long time...
    • View Profile
Re: Sparking!!! Dragon Ball (Z) Mod: Come out, Dragon! (0.34.11)
« Reply #331 on: February 04, 2013, 03:47:16 pm »

Oh damn it.

Does it spit out an error?
DFhack was like MAAAAAH RANDOM SHAT THAT TIM CAN'T UNDERSTAND MAAAAH ((In red text))
Also, it said this at one part of the error:
[C]: in function 'error'
It does this every time I try to scouterize things.
Logged
Sigtextastic
Vereor Nox.
There'll be another King, another sky, and a billion more stars...

KingofstarrySkies

  • Bay Watcher
  • It's been a long time...
    • View Profile
Re: Sparking!!! Dragon Ball (Z) Mod: Come out, Dragon! (0.34.11)
« Reply #332 on: February 04, 2013, 04:56:59 pm »

I had a idea for a wish, not sure if its possible.
Make a season endless. for example, if urist mcsaiyan collects them and wishes for that, then BAM!
Always winter. Maybe until someone unwishes it.
Logged
Sigtextastic
Vereor Nox.
There'll be another King, another sky, and a billion more stars...

zimer02

  • Bay Watcher
    • View Profile
Re: Sparking!!! Dragon Ball (Z) Mod: Come out, Dragon! (0.34.11)
« Reply #333 on: February 04, 2013, 05:23:21 pm »

Question, are sayians as weak to poison (like a rattle snake bite) as dwarves are?

Also I'm pretty sure the scouter may be inaccurate as it says that a sturgeon power was 11048 (that's more than my strongest sayian)
« Last Edit: February 04, 2013, 05:29:58 pm by zimer02 »
Logged

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: Sparking!!! Dragon Ball (Z) Mod: Come out, Dragon! (0.34.11)
« Reply #334 on: February 04, 2013, 05:46:32 pm »

Oh damn it.

Does it spit out an error?
DFhack was like MAAAAAH RANDOM SHAT THAT TIM CAN'T UNDERSTAND MAAAAH ((In red text))
Also, it said this at one part of the error:
[C]: in function 'error'
It does this every time I try to scouterize things.

Post the entire thing.

KingofstarrySkies

  • Bay Watcher
  • It's been a long time...
    • View Profile
Re: Sparking!!! Dragon Ball (Z) Mod: Come out, Dragon! (0.34.11)
« Reply #335 on: February 04, 2013, 05:49:04 pm »

Oh damn it.

Does it spit out an error?
DFhack was like MAAAAAH RANDOM SHAT THAT TIM CAN'T UNDERSTAND MAAAAH ((In red text))
Also, it said this at one part of the error:
[C]: in function 'error'
It does this every time I try to scouterize things.

Post the entire thing.
Ahhhhh shit. hold on, this'll take a bit.
Logged
Sigtextastic
Vereor Nox.
There'll be another King, another sky, and a billion more stars...

KingofstarrySkies

  • Bay Watcher
  • It's been a long time...
    • View Profile
Re: Sparking!!! Dragon Ball (Z) Mod: Come out, Dragon! (0.34.11)
« Reply #336 on: February 04, 2013, 06:10:40 pm »

Sandra\appdata\Local\temp\Rar$EX57.792\hack\lua\dfhack.lua:326 ...Appdata\local\temp\Rar$EX57.792\hack\scripts/scouter.lua:1: unexpected symbol near '[' stack tradeback:

[C]: in function 'error'

Sandra\appdata\Local\temp\Rar$EX57.792\hack\lua\dfhack.lua:326: in function <Sandra\appdata\Local\temp\Rar$EX57.792\hack\lua\dfhack.lua:316>


By the way, this took AWHILE
I considered just telling you to try it yourself, but.....
Imma nice guy.

Logged
Sigtextastic
Vereor Nox.
There'll be another King, another sky, and a billion more stars...

smakemupagus

  • Bay Watcher
  • [CANOPENDOORS]
    • View Profile
Re: Sparking!!! Dragon Ball (Z) Mod: Come out, Dragon! (0.34.11)
« Reply #337 on: February 04, 2013, 06:13:17 pm »

I'm guessing programming the whole mod took a while too  8)

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: Sparking!!! Dragon Ball (Z) Mod: Come out, Dragon! (0.34.11)
« Reply #338 on: February 04, 2013, 06:17:26 pm »

Sandra\appdata\Local\temp\Rar$EX57.792\hack\lua\dfhack.lua:326 ...Appdata\local\temp\Rar$EX57.792\hack\scripts/scouter.lua:1: unexpected symbol near '[' stack tradeback:

[C]: in function 'error'

Sandra\appdata\Local\temp\Rar$EX57.792\hack\lua\dfhack.lua:326: in function <Sandra\appdata\Local\temp\Rar$EX57.792\hack\lua\dfhack.lua:316>


By the way, this took AWHILE
I considered just telling you to try it yourself, but.....
Imma nice guy.

...post the entire contents of your scouter.lua file. Just open it in Notepad.

KingofstarrySkies

  • Bay Watcher
  • It's been a long time...
    • View Profile
Re: Sparking!!! Dragon Ball (Z) Mod: Come out, Dragon! (0.34.11)
« Reply #339 on: February 04, 2013, 06:24:14 pm »

where would that be?
Im so terrible at this...... :'(
Logged
Sigtextastic
Vereor Nox.
There'll be another King, another sky, and a billion more stars...

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: Sparking!!! Dragon Ball (Z) Mod: Come out, Dragon! (0.34.11)
« Reply #340 on: February 04, 2013, 06:25:44 pm »

DF folder\hack\scripts\scouter.lua

KingofstarrySkies

  • Bay Watcher
  • It's been a long time...
    • View Profile
Re: Sparking!!! Dragon Ball (Z) Mod: Come out, Dragon! (0.34.11)
« Reply #341 on: February 04, 2013, 06:36:22 pm »

[c-- Gives power level of selected unit. Type "popup" for popup announcement.

local selectedUnit = dfhack.gui.getSelectedUnit(silent)

local arg = ...

function isWinded(unit)
   if unit.counters.winded > 0 then return true end
   return false
end
function isStunned(unit)
   if unit.counters.stunned > 0 then return true end
   return false
end
function isUnconscious(unit)
   if unit.counters.unconscious > 0 then return true end
   return false
end
function isParalyzed(unit)
   if unit.counters2.paralysis > 0 then return true end
   return false
end
function getExhaustion(unit)
   local exhaustion = 1
   if unit.counters2.exhaustion~=0 then
      exhaustion = 1000/unit.counters2.exhaustion
      if exhaustion>1 then exhaustion = 1 end
   else unit.counters2.exhaustion=1
   return exhaustion
   end
   return 1
end
function getBoost(unit)
   return unit.counters.soldier_mood
end

--power levels should account for disabilities and such

--I have to declare the individual skill's numbers, including these here makes the program easier to read
local MELEE_COMBAT = 99
local WRESTLING = 102
local GRASP_STRIKE = 104
local STANCE_STRIKE = 105
local BITE = 103
local THROW = 55
local RANGED_COMBAT = 101

if df.isnull(selectedUnit) then
   qerror('Need to select a unit.')
end

--blood_max appears to be the creature's body size divided by 10; the power level calculation relies on body size divided by 1000, so divided by 100 it is. blood_count refers to current blood amount, and it, when full, is equal to blood_max.
local strength = selectedUnit.body.physical_attrs.STRENGTH.value/3550
local agility = selectedUnit.body.physical_attrs.AGILITY.value/3550
local endurance = selectedUnit.body.physical_attrs.ENDURANCE.value/1000
local toughness = selectedUnit.body.physical_attrs.TOUGHNESS.value/2250
local spatialsense = selectedUnit.status.current_soul.mental_attrs.SPATIAL_SENSE.value/1500
local kinestheticsense = selectedUnit.status.current_soul.mental_attrs.KINESTHETIC_SENSE.value/1000
local willpower = selectedUnit.status.current_soul.mental_attrs.WILLPOWER.value/1000
local exhaustion = getExhaustion(selectedUnit)
local bodysize = selectedUnit.body.blood_count/100
local fighting = dfhack.units.getEffectiveSkill(selectedUnit, MELEE_COMBAT)*1000
local wrestling = dfhack.units.getEffectiveSkill(selectedUnit, WRESTLING)*1000
local grasp_strike = dfhack.units.getEffectiveSkill(selectedUnit, GRASP_STRIKE)*1000
local stance_strike = dfhack.units.getEffectiveSkill(selectedUnit, STANCE_STRIKE)*1000
local biting = dfhack.units.getEffectiveSkill(selectedUnit, BITE)*1000
local ki = dfhack.units.getEffectiveSkill(selectedUnit, THROW)*1000 + dfhack.units.getEffectiveSkill(selectedUnit, RANGED_COMBAT)*1000
local powerlevel = bodysize*bodysize*strength*agility*endurance*toughness*spatialsense*kinestheticsense*willpower*exhaustion+fighting+wrestling+grasp_strike+stance_strike+biting+ki
if getBoost(selectedUnit)==0 then powerlevel=powerlevel*1.5 end
if getBoost(selectedUnit)==1 then powerlevel=powerlevel*2 end
if getBoost(selectedUnit)==2 then powerlevel=powerlevel*1.3 end
if isWinded(selectedUnit) then powerlevel=powerlevel/1.2 end
if isStunned(selectedUnit) then powerlevel=powerlevel/1.5 end
if isParalyzed(selectedUnit) then powerlevel=powerlevel/5 end
if isUnconscious(selectedUnit) then powerlevel=powerlevel/10 end

if arg == "popup" or arg == "Popup" then
   dfhack.gui.showPopupAnnouncement("The scouter says " .. math.floor(powerlevel) .. "!",11)
   else dfhack.gui.showAnnouncement("The scouter says " .. math.floor(powerlevel) .. "!",11)
end
Logged
Sigtextastic
Vereor Nox.
There'll be another King, another sky, and a billion more stars...

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: Sparking!!! Dragon Ball (Z) Mod: Come out, Dragon! (0.34.11)
« Reply #342 on: February 04, 2013, 06:37:55 pm »

Aha! Delete that [c at the very start of the file. No idea what that is.

KingofstarrySkies

  • Bay Watcher
  • It's been a long time...
    • View Profile
Re: Sparking!!! Dragon Ball (Z) Mod: Come out, Dragon! (0.34.11)
« Reply #343 on: February 04, 2013, 07:06:37 pm »

Aha! Delete that [c at the very start of the file. No idea what that is.
Thank you.
No I can hunt for the dragon balls in peace.
MOTHAR FUCKER
I deleted JUST THE [C
AND IT STILL DOESN'T WORK
DAMMIT
« Last Edit: February 04, 2013, 07:30:20 pm by KingofstarrySkies »
Logged
Sigtextastic
Vereor Nox.
There'll be another King, another sky, and a billion more stars...

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: Sparking!!! Dragon Ball (Z) Mod: Come out, Dragon! (0.34.11)
« Reply #344 on: February 04, 2013, 07:40:48 pm »

Post the error. Start at the part right after the colon here: scripts/scouter.lua:

And end it at the end of that line.
Pages: 1 ... 21 22 [23] 24 25 ... 88