ID:151092
 
Hello,

I was trying to do a verb like that:
/mob/verb
  // this converts the turf where I am standing
  convert_one()
    new /turf/floor/red(src.loc)
  // this crashes DS
  convert_mass()
    var/turf/floor/T
    for (T as turf in view(1))
      new /turf/floor/red(T:loc)



Anyone has a clue why?

Thanks!
On 5/5/01 4:40 pm Monteiro wrote:
Hello,

I was trying to do a verb like that:
<font color="#ffffff">
/mob/verb// this converts the turf where I am standingconvert_one()new /turf/floor/red(src.loc)// this crashes DSconvert_mass()var/turf/floor/Tfor (T as turf in view(1))new /turf/floor/red(T:loc)
</font>
Anyone has a clue why?

Thanks!

It definitely shouldn't crash...but try taking out the "as turf" part, since that is unnecessary. Dunno if that will stop the crashing though.
On 5/5/01 4:40 pm Monteiro wrote:
Hello,

I was trying to do a verb like that:
<font color="#ffffff">
/mob/verb// this converts the turf where I am standingconvert_one()new /turf/floor/red(src.loc)// this crashes DSconvert_mass()var/turf/floor/Tfor (T as turf in view(1))new /turf/floor/red(T:loc)
</font>
Anyone has a clue why?

Thanks!
its crashing because a turf's Loc is the map. You should change new /turf/floor/red(T:loc)
to new /turf/floor/red(T). That should fix the problem.
In response to Ebonshadow
its crashing because a turf's Loc is the map. You should change new /turf/floor/red(T:loc)
to new /turf/floor/red(T). That should fix the problem.

Thanks!
It really solved the problem!

Cheers,

Julio
In response to Monteiro

Thanks!
It really solved the problem!

Yes, but DS should never crash! Thanks for the report.

--Dan