Commit Graph

6992 Commits

Author SHA1 Message Date
Ccomp5950
bf7684bced Lagsie no more, NarSie HUNGERS
removed del() calls for objects, now it sets loc to null and removes it from master_controller processing

Much quicker :)
2014-03-30 03:15:20 -05:00
Chinsky
60b6daadee Merge pull request #4641 from Ccomp5950/log_fix
*NIX Log files part 2.
2014-03-27 15:12:19 +03:00
Ccomp5950
936db263ef *NIX Log files part 2.
CR+LF added to new lines, created a global variable log_end that can be used
on newlines

log_misc("blahblah...[log_end]\nMoreblahblah[log_end]")

put [log_end] prior to any \n and it will show up correctly in windows.

Also created log_misc() proc to log to diary, and removed a bunch of

diary << stuff all over the place.
2014-03-26 18:51:37 -05:00
Ccomp5950
bee3d30baa Oops, broke Mesons when I fixed NVG's
This should put things back where they go.
2014-03-26 17:19:51 -05:00
Mloc
38a22e880f Merge pull request #4623 from Ccomp5950/bugfixes
Bugfixes, Various
2014-03-25 08:45:53 +00:00
Ccomp5950
e54ce881eb NVG Bugfix
Now they work, and also added a green hud element that tints the screen green when nvg's are worn.
2014-03-23 13:51:57 -05:00
Mloc
9d1ecdfbe8 Merge pull request #4618 from Ccomp5950/mob_controller_controlled
Code Effeciency project:  mob_controller / human and monkey Life()
2014-03-23 17:22:18 +00:00
Ccomp5950
0225d7b3b0 Bug fix 3: Now with a vengence. Monkey pockets cause scrolled chat.
Added the check to see what you clicked in the inventory when clicking on pockets and added a message for it.  Now it won't just be a line break.

Fixes #4601
2014-03-23 06:05:23 -05:00
Ccomp5950
7000cce408 Admin Request: Logs now will end in CRLF on unix systems.
Also removed the "SERVER HAS CALLED FOR A VOTE" spam
2014-03-23 02:26:06 -05:00
Ccomp5950
28392e9414 Code effeciency project: handle_virus_something() (human and monkey /Life())
2 for loops is more expensive then what we're doing here.
Also we check to see if virus2 is populated before starting a for loop
2014-03-22 07:50:23 -05:00
Ccomp5950
8106b6a4ae Code Effeciency project: Damn monkies Life()
pretty much the same effeciencies from human/life()

no need to updatehealth() over and over and over
no need to process environment if everything is normal
etc.
2014-03-22 06:56:09 -05:00
Ccomp5950
ce83c5c64e Code effeciency project: handle_environment (human/life())
Before:  We process a whole lot of bullshit for no real reason most of the time because temperatures are perfect.

Now:	 We check if our temperatures and environment are within normal bounds and get the hell out of the proc.

Also:    Mobs that are long dead or just dead mobs spawned at round start won't process Life(), those 3 clowns don't need Life(), those jerks.
2014-03-22 06:22:01 -05:00
Ccomp5950
f1506acf1e Code effeciency project: Handle_Organs (human/life())
We do a bit of pre-processing to see if we want to do checks on all the organs.

First we don't even do preprocessing unless we have damage of some kind
afterwards we process what is hurt until it gets better or overall we get worse
when we go ahead and check everything else out again.

Can add a safety check in life every 30 ticks or so go ahead and check every organ again but I don't think it's needed.
2014-03-22 04:33:48 -05:00
Ccomp5950
62db2723dd Merge pull request #4614 from LightningIron/master
Added Alden-Saraspova counters to excavation closets.
2014-03-22 02:07:58 -05:00
LightningIron
37a4b9e7da Added Alden-Saraspova counters to excavation closets; item previously unobtainable. 2014-03-21 15:24:19 -05:00
Ccomp5950
731f08eb10 Rejuvination verb fix for IPC's limbs don't suddenly become organic. 2014-03-20 20:31:33 -05:00
Ccomp5950
5dbc141b9b IPC examination won't cause "OH NO ROBOTIC LIMBS" (no shit, yo!) messages.
Unless they are damaged.
2014-03-20 20:15:02 -05:00
Jim "Apples"
ae2c398b26 Merge pull request #4611 from Aryn/to-master
Ctrl-H "faggot" to "meatball" and one icon state change.
2014-03-20 11:22:37 +00:00
Aryn
de86280434 Ctrl-H "faggot" to "meatball" and one icon state change. 2014-03-20 05:05:23 -06:00
Jarcolr
6300e859a2 Fixes #4600
Will fix #4600 and the problem with drinks not knowing when they are open/closed.
Hopefully I didn't miss a string of code again,I don't think so,though.
2014-03-17 23:13:29 +02:00
Mloc
83d028e394 Merge pull request #4588 from Ccomp5950/ore_process_optimize
Code effeciency project:  Ore processing.
2014-03-17 19:14:20 +00:00
Mloc
38c84de28b Merge pull request #4585 from Ccomp5950/hud-no-client
HUD-Optimization bugfix, mobs with no clients will update their health
2014-03-16 11:49:04 +00:00
Ccomp5950
31ed2999c5 Runtime fix on spawned mobs with no minds/client. 2014-03-15 06:31:53 -05:00
Ccomp5950
7ce4073135 Code effeciency project: Ore processing.
Before:  The stacker and processor used del(item) to get rid of the items causing /obj/movable/del() to spike up and cause fun amounts of lag.  Also we have seperate variables for if a certain ore type is selected in the processing machine and the cooking portion of process() uses a huge string of if()'s which check 8 or so variables and is terrible and probably a pain in the ass should someone decide to later add ore types and recipes.

After:  We just set item.loc = null when it goes in the stacker of processor and garbage collection takes care of it within a tick.  Those different variables for ore selection are now just one variable which is a bitfield, much easier to read, much easier to expand upon.
2014-03-15 04:05:56 -05:00
Ccomp5950
f1fdbb02c0 HUD-Optimization bugfix, mobs with no clients will update their health
HUD image as well.
2014-03-15 00:57:11 -05:00
Jarcolr
53d0fac4e3 Small tweak to coin flipping.
Last one,I swear.
2014-03-14 18:39:22 +02:00
Jarcolr
c8c7ea34e9 Forgot var/sides = 2
Oops.
2014-03-13 19:33:54 +02:00
Jarcolr
51177f2663 You can now flip coins,AKA the D2 2014-03-13 18:56:01 +02:00
yashaldie
55e43176b8 Merge pull request #3 from yashaldie/patch-2
Fixes Diona Nymph handling updates
2014-03-11 23:05:28 -04:00
Loganbacca
1f7a444ab1 Fixed plasma glass outputting slag
Fixes #4560

Code was missing continue statements.
2014-03-12 13:15:23 +13:00
yashaldie
bdd955b036 Fixes Diona Nymph handling updates
Diona Nymphs were not getting their Handling procs called.
2014-03-11 05:45:10 -04:00
Ccomp5950
b429605adc MedicHUD bugfix
Because the HUD stuff is now in Life() if someone dies their healthbar and status aren't updated.
We're fixing that here.
2014-03-11 02:51:13 -05:00
Ccomp5950
ebc188c600 Code effeciency project: HUD items rewrite
Before: Every tick each HUD item would recalculate and redo images for every mob in view. For items like the secHUD where we're transversing implants and the various records this gets very expensive.

After: Mobs use their hud_list variable to store varius huditem images, when conditions change for those specific huditem images it updates the specific ones on demand. As a backup every 30 ticks or so the mob will update all of their hud_list.

Also: moved proc/RoundHealth() from 2 seperate locations into __HELPERS/mobs.dm

Conflicts:
	code/modules/mob/living/living.dm
2014-03-10 21:59:58 -05:00
DJSnapshot
044766ef11 quick fix for APCs related to IPC charging. 2014-03-10 15:52:01 -07:00
Ccomp5950
63e0c5b980 Merge pull request #4539 from yashaldie/master
Fix for slime surgery runtime & o2 lockers bug
2014-03-09 01:39:30 -06:00
Chinsky
4dba89a288 Fix for #4542
Now synthetics do not contract viruses
2014-03-08 03:38:30 +04:00
Chinsky
3554a7be4f Merge pull request #4535 from Mloc/bs12-'
Fix for apostrophes in IRC nudge.
2014-03-07 17:32:26 +04:00
yashaldie
421b1ea6ef Fixes for slime surgery runtime
don't know why the slime is coming though even though the target is supposed to be human...
2014-03-07 04:56:49 -05:00
yashaldie
69dfb92719 Fixes for slime surgery runtime
don't know why this works but it does and doesn't break other surgeries from what i can tell
2014-03-07 04:55:23 -05:00
Mloc-Argent
63a27890fe Fix for apostrophes in IRC nudge.
Signed-off-by: Mloc-Argent <colmohici@gmail.com>
2014-03-06 09:36:58 +00:00
Mloc
08ba326878 Merge pull request #4532 from Ccomp5950/apc_breaker
APC overlay bugfix.
2014-03-06 09:09:48 +00:00
Mloc
16b1626b57 Merge pull request #4525 from Ccomp5950/pda_nano
PDA NanoUI Optimizations.
2014-03-06 09:09:05 +00:00
Ccomp5950
a379be8a55 Merge pull request #4533 from DJSnapshot/hotfix
Non-whitelisted IPCS. The real fix this time.
2014-03-06 02:22:41 -06:00
DJSnapshot
89114787e3 Non-whitelisted IPCS
Had to do a hacky fix. there was no real way around it.
Also, a couple balances with IPCs
And a totally silly death animation (Which has been commented out for now)
2014-03-05 23:44:03 -08:00
Ccomp5950
74a8fa152c APC overlay bugfix.
Before: If you turned off the breaker and fiddled with on/off states and turned on the breaker it wouldn't update the overlay because the check_updates wasn't doing an if(operating) check and would think it didn't need to update the overlays once you turned on the breaker.

After: Check_update() is doing a check for the breaker being on or off and taking that into account with the update_overlay flags and will update the overlays properly.

Thanks Razharas from /tg/ #coderbus for bringing this to my attention.
2014-03-04 20:57:40 -06:00
Chinsky
98b45e52ac Merge pull request #4518 from yashaldie/master
fixes IPC brain surgery
2014-03-04 18:18:33 +04:00
Chinsky
8fa689a433 Merge pull request #4521 from Mloc/bs12-bloodyipcs
Dionaea can no longer steal blood from species which have the NO_BLOOD flag
2014-03-04 18:18:10 +04:00
Chinsky
557f8c7e92 Merge pull request #4526 from Mloc/bs12-libnudge
Adds a C library alternative to the ircbot nudge script.
2014-03-04 18:13:48 +04:00
Mloc
8d048c0179 Merge pull request #4519 from Furlucis/master
Meat cutting fix
2014-03-04 10:14:55 +00:00
Mloc-Argent
49890421f8 Adds a C library alternative to the ircbot nudge script.
This allows for more secure and stable transmission on Linux, but you might see some improvements on Windows too.
Code lies in (confusingly) lib/src.
nudge.c should be compiled to lib/nudge.[dll/so] and be linked against netutil.c.

There's some horribly hacky code in nudge.c to assemble pickled data, but it's probably the fastest way that's still safe.

Signed-off-by: Mloc-Argent <colmohici@gmail.com>
2014-03-04 10:08:17 +00:00