Code center > Bugs and fixes

poison and venom not working

<< < (4/9) > >>

Numsgil:
There are some (very) old versions listed here.  You could try and get a baseline of when it was working.  From that we can probably binary search through the releases to find when it broke.

Botsareus:
That is my point as well. I know I specifically tested all defenses when it was version 2.46.XX
All the defenses worked. There is something specific with the way Shadowgods code is designed. Numsgil, there should not be a need for the old binaries at this point bc me and shadow are certain it worked at least in v 2.45.01. Shadow, try storing venom for a while and firing it at a later time. One reason I was pissed off is I do not have access to a computer right now to try myself.
In general you guys try stuff and see if it works. Now I am thinking Shadow got hit with the same virus I did.
Sorry, can not help in any other way at this time. Still waiting for an apartment. Over and out.

Botsareus:
Take a look at this code here:


--- Code: ---Private Sub Upkeep(n As Integer)
  Dim Cost As Single
  Dim ageDelta As Long
  With rob(n)
       
    'EricL 4/12/2006 Growing old is a bitch
    'Age Cost
    ageDelta = .age - CLng(SimOpts.Costs(AGECOSTSTART))
    If ageDelta > 0 And .age > 0 Then
      If SimOpts.Costs(AGECOSTMAKELOG) = 1 Then
        Cost = SimOpts.Costs(AGECOST) * Math.Log(ageDelta)
      ElseIf SimOpts.Costs(AGECOSTMAKELINEAR) = 1 Then
        Cost = SimOpts.Costs(AGECOST) + (ageDelta * SimOpts.Costs(AGECOSTLINEARFRACTION))
      Else
        Cost = SimOpts.Costs(AGECOST)
      End If
      .nrg = .nrg - (Cost * SimOpts.Costs(COSTMULTIPLIER))
    End If
 
    'BODY UPKEEP
    Cost = .body * SimOpts.Costs(BODYUPKEEP) * SimOpts.Costs(COSTMULTIPLIER)
    .nrg = .nrg - Cost
   
    'DNA upkeep cost
    Cost = (.DnaLen - 1) * SimOpts.Costs(DNACYCCOST) * SimOpts.Costs(COSTMULTIPLIER)
    .nrg = .nrg - Cost
   
    'degrade slime
    .Slime = .Slime * 0.98
    If .Slime < 0.5 Then .Slime = 0 ' To keep things sane for integer rounding, etc.
    .mem(821) = CInt(.Slime)
   
    'degrade poison
    .poison = .poison * 0.98
    If .poison < 0.5 Then .poison = 0 'Botsareus 3/15/2013 bug fix for poison so it does not change slime
    .mem(827) = CInt(.poison)
   
  End With
End Sub
--- End code ---

This is the only fix I ever done that is poison related.  It was setting slime to zero before, ugliness plenty.

Shadowgod2:
um venom is working again and i swear it wasn't earlier at the start of this topic. i do admit that i did forget about the same species rule here recently due to fatigue with new land we got not too long ago and cleaning it up this weekend, sorry.
i however can't get poison to work still on any version. it shoots and hits but to effect. i'll look into it further tomorrow

the bots i am using:


--- Code: ---' Alga minimalis
'
' Vegetable
'
' This robot has a single gene,
' necessary for it to reproduce.
' Energy is given to it by the program,
' by checking the "autotroph" box.

cond
  *.nrg
  6000
  >
start
  50
  .repro
  store
  15
  .aimdx
  store
stop

start
1 .strpoison store
1000 .pval store
.aimdx .ploc store
stop
end
--- End code ---

modified to shoot -1 shots

--- Code: ---start
10 .strvenom store
.shoot .vloc store
-2 .venval store
stop

cond
*.robage 10 mod 0
start
-1 .shoot store
100 .shootval store0
stop
end
--- End code ---

Botsareus (and anyone else in the same boat, me close behind) i don't blame you for not believing me.

Botsareus:


For strpoison I would use something like:


--- Code: ---*.nrg 500 div .strpoison store

--- End code ---

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version