ID:162582
 
im making a command and conquer game (CNC)

characters can build bases, and tanks, but they all have a owner var. so other players cannot use your stuff, but when you log out and back in the obj var owner is no longer set to the player that made it

i have it saving all the mob stuff but why does it delete the map info and obj on the map

Warriormax wrote:
i have it saving all the mob stuff but why does it delete the map info and obj on the map

Logic: because you're only saving "all of the mob stuff", not "the map info and obj on the map".

Solution: save "the map info and obj on the map" with "all of the mob stuff".

-- Data
In response to Android Data
so ya i kinda did that but i dont know whats wrong with that?

    if (base_save_verbs)
mob.base_saved_verbs = mob.verbs
if (base_save_verbs2)
obj.base_saved_verbs2 = obj.verbs


and here there defined

client/var/tmp
base_num_characters_allowed = 1
base_autoload_character = 1
base_autosave_character = 1
base_autodelete_mob = 1
base_save_verbs = 1
base_save_verbs2 = 1

obj
var/list/base_saved_verbs2
mob
var/list/base_saved_verbs