ID:141970
 
Code:
src.client.screen += new/obj/Bulbasaur/Ally/TR
src.client.screen += new/obj/Bulbasaur/Ally/TL
src.client.screen += new/obj/Bulbasaur/Ally/BR
src.client.screen += new/obj/Bulbasaur/Ally/BL


Problem description:
When I run the game the object doesnt show up on screen at all and I do have scren_loc defined

Where is that code located at? Where and how do you set screen_loc? We need some more context.
In response to Loduwijk
mob/Login()
sleep(10)
for(var/mob/M in world)
src.loc = locate(30,17,1)
src.client.view = 9
src.client.screen += new/obj/Bulbasaur/Ally/TR
src.client.screen += new/obj/Bulbasaur/Ally/TL
src.client.screen += new/obj/Bulbasaur/Ally/BR
src.client.screen += new/obj/Bulbasaur/Ally/BL

//defined here
obj/Bulbasaur
icon = '001 Bulbasaur.dmi'
Enemy
TR
icon_state = "2"
pixel_y = 32
pixel_x = 32

TL
icon_state = "1"
pixel_y = 32

BR
icon_state = "4"

pixel_x = 32
BL
icon_state = "3"

Ally
screen_loc = "5,5"
TR
icon_state = "A2"
pixel_y = 32
pixel_x = 32

TL
icon_state = "A1"
pixel_y = 32
///pixel_x = -32
BR
icon_state = "A4"


pixel_x = 32
BL

pixel_x = -32
icon_state = "A3"
In response to Jamckell
Jamckell wrote:
> mob/Login()
> sleep(10)
> for(var/mob/M in world)
> src.loc = locate(30,17,1)
> src.client.view = 9
> src.client.screen += new/obj/Bulbasaur/Ally/TR
> src.client.screen += new/obj/Bulbasaur/Ally/TL
> src.client.screen += new/obj/Bulbasaur/Ally/BR
> src.client.screen += new/obj/Bulbasaur/Ally/BL
>

If you think that should be adding the Bulbasaur objects to every player's screen by looping through mobs in world, that's where your problem is.

If that's supposed to show up only for the player logging in, get that "for(var/mob/M in world)" out of there. If it's supposed to show up for every player every time someone logs in, then you want M.client.screen, however, not all mobs are guarenteed to have clients, and you also could have just done for(var/client/C) if you wanted to loop through clients.

You said that you are setting screen_loc, but you are not doing so in any of the code you showed. Are you sure the place where you do so is indeed setting the screen_loc properly?
In response to Loduwijk
No, no the for(var/mob/M) was a test I changed the players loc to that and forgot to remove it. I'm just testing to see if the objects show up on screen at all