Cyborg question

How, what and why to code in BYOND.
Post Reply
Central Core
Joined: Thu Jan 12, 2017 6:38 am
Byond Username: Central Core
Location: Earth

Cyborg question

Post by Central Core » #246752

Hello once again. Now I am not sure if this is the right place for this one or any of my questions but no one has told me otherwise so here is another.

I am trying to replace the default cyborg sprite with one of my choosing so that when you become one at round start or make one by putting the brain in the cyborg body it would become the sprite I put in the file so I can see how it looks in game.

What I did was add the sprite to the robots.dmi file and I changed the icon_state in the robot.dm file from the default robot to the one I choose but all it did was change it in Dream maker not in game so if anyone knows what I missed please let me know.
User avatar
TribeOfBeavers
In-Game Game Master
Joined: Wed Jun 15, 2016 6:54 pm
Byond Username: TribeOfBeavers
Location: Canada

Re: Cyborg question

Post by TribeOfBeavers » #246755

If you just want to change how a sprite looks it would probably be easier to just replace the existing one in the file, then you don't have to mess with the code at all.

Are you sure that you are running the code you compiled and not the old version?
Central Core
Joined: Thu Jan 12, 2017 6:38 am
Byond Username: Central Core
Location: Earth

Re: Cyborg question

Post by Central Core » #246758

TribeOfBeavers wrote:If you just want to change how a sprite looks it would probably be easier to just replace the existing one in the file, then you don't have to mess with the code at all.

Are you sure that you are running the code you compiled and not the old version?
Honestly you may be right about just changing the existing one...and I am pretty sure its the compiled one...
User avatar
Cobby
Code Maintainer
Joined: Sat Apr 19, 2014 7:19 pm
Byond Username: ExcessiveUseOfCobby
Github Username: ExcessiveUseOfCobblestone

Re: Cyborg question

Post by Cobby » #247285

Central Core wrote:
TribeOfBeavers wrote:If you just want to change how a sprite looks it would probably be easier to just replace the existing one in the file, then you don't have to mess with the code at all.

Are you sure that you are running the code you compiled and not the old version?
Honestly you may be right about just changing the existing one...and I am pretty sure its the compiled one...
w-w-what
Voted best trap in /tg/ 2014-current
User avatar
Screemonster
Joined: Sat Jul 26, 2014 7:23 pm
Byond Username: Scree

Re: Cyborg question

Post by Screemonster » #247294

In dream maker, after changing and saving your code, go to the build menu on the toolbar - did you hit "compile" or "clean compile"?
Central Core
Joined: Thu Jan 12, 2017 6:38 am
Byond Username: Central Core
Location: Earth

Re: Cyborg question

Post by Central Core » #247811

Screemonster wrote:In dream maker, after changing and saving your code, go to the build menu on the toolbar - did you hit "compile" or "clean compile"?
I hit compile. I got it worked after a while so that is good.
User avatar
Screemonster
Joined: Sat Jul 26, 2014 7:23 pm
Byond Username: Scree

Re: Cyborg question

Post by Screemonster » #247812

Sometimes I've found that compile (as opposed to clean compile) can make fucky results when I'm working with images but I'm not 100% certain on what the difference is and why you'd use one and not the other.
User avatar
Haevacht
Joined: Sat Apr 19, 2014 1:08 am
Byond Username: Capital_H

Re: Cyborg question

Post by Haevacht » #247813

If you fuck with images clean compile. It rebuilds resources or some shit.
1% of a coder, 2% of a spriter, 97% >:3c

Random name on Bagel, usually assistant.
Post Reply

Who is online

Users browsing this forum: No registered users