Research and "OriginTech" mega thread

How, what and why to code in BYOND.
Post Reply
User avatar
MrStonedOne
Host
Joined: Mon Apr 14, 2014 10:56 pm
Byond Username: MrStonedOne
Github Username: MrStonedOne

Research and "OriginTech" mega thread

Post by MrStonedOne » #76024

So i made some pages for wiki by generating them in byond.

List of items with origin tech (670 items in this table)

List of items without origin tech (2420 items in this table)

And here is the code:

Code: Select all

/client/proc/generateorigintechwikitables()
	set category = "Debug"
	set name = "Generate Origin Tech WikiTables"

	var/withorigintechtable = {"{| class="wikitable sortable mw-collapsible mw-collapsed" style="text-align:center" width="100%"
|+Items with Origin tech
!Type
!Name
!Material
!Enginee<br>ring
!Plasma
!Power
!Blue<br>space
!Bio
!Combat
!EMP
!Data
!Illegal"}
	var/noorigintechtable = {"{| class="wikitable sortable mw-collapsible mw-collapsed" style="text-align:center" width="100%"
|+Items without Origin tech
!Type
!Name
"}
	
	for(var/T in typesof(/obj/item))
		var/flags = initial(T:flags)
		if (flags & (NODROP|ABSTRACT))
			continue
		var/tech = initial(T:origin_tech)
		var/name = initial(T:name)
		
		
		var/list/techlist = params2list("materials=0;programming=0;magnets=0;powerstorage=0;bluespace=0;combat=0;biotech=0;syndicate=0;engineering=0;plasmatech=0")
		var/list/temp_list = params2list(tech)
		if (!tech || temp_list.len == 0)
			noorigintechtable += {"|-
|[T] || [name]
"}
			continue
		for(var/I in temp_list)
			techlist[I] = text2num(temp_list[I])
		
		withorigintechtable += {"
|-
|[T] || [name]"}

		withorigintechtable += " || [techlist["materials"]]"
		withorigintechtable += " || [techlist["engineering"]]"
		withorigintechtable += " || [techlist["plasmatech"]]"
		withorigintechtable += " || [techlist["powerstorage"]]"
		withorigintechtable += " || [techlist["bluespace"]]"
		withorigintechtable += " || [techlist["biotech"]]"
		withorigintechtable += " || [techlist["combat"]]"
		withorigintechtable += " || [techlist["magnets"]]"
		withorigintechtable += " || [techlist["programming"]]"
		withorigintechtable += " || [techlist["syndicate"]]"
		
	withorigintechtable += {"
|}
"}
	noorigintechtable += {"
|}
"}
	usr << browse("<pre>" + withorigintechtable + "\n\n\n" + noorigintechtable + "</pre>", "window=wikitablelist")
(I just added it as an admin verb for +debug on my local branch)

To use this, just run it somehow, find the 400kb html file in byonds cache (sort by date modified), load it in notepad++, find an example of the "improper" bullshit, do a find/replace on that to blank it out, and then you just pop the two tables in a wiki page.

Moving on: What I was hoping was that users who have the time and patience could look at adding origin tech to items that don't have it, but need it, and tweaking/balancing the ones that do have it.

Either way, the data is here for you all to use.
Forum/Wiki Administrator, Server host, Database King, Master Coder
MrStonedOne on digg(banned), Steam, IRC, Skype Discord. (!vAKvpFcksg)
Image
NSFW:
Image
User avatar
MisterPerson
Board Moderator
Joined: Tue Apr 15, 2014 4:26 pm
Byond Username: MisterPerson

Re: Research and "OriginTech" mega thread

Post by MisterPerson » #76230

Thank you for this service. Hopefully someone takes the charge on adding/tweaking tech origins.
I code for the code project and moderate the code sections of the forums.

Feedback is dumb and it doesn't matter
Malkevin

Re: Research and "OriginTech" mega thread

Post by Malkevin » #77088

Might be a good idea seeing if the files could be displayed as expanding trees rather than straight text dumps.
Cik
Joined: Thu Oct 30, 2014 2:24 pm
Byond Username: Cik

Re: Research and "OriginTech" mega thread

Post by Cik » #77149

i've read the OP several times and i still don't understand what the fuck
TheNightingale
Joined: Fri Mar 20, 2015 5:07 pm
Byond Username: TheNightingale

Re: Research and "OriginTech" mega thread

Post by TheNightingale » #77404

Cik wrote:i've read the OP several times and i still don't understand what the fuck
In R&D, many items can be deconstructed for tech levels. A flamethrower has Combat 1, Plasma 1, for example. An energy sword has Magnets 3 and Syndicate 4.

In the code, "OriginTech" refers to these tech levels.

The code in the OP is a table that can generate a list of items without "OriginTech" - items that won't go in the destructive analyser, because they have no tech levels (like a chameleon projector or donut).

The rest is magic.
lumipharon
TGMC Administrator
Joined: Mon Apr 28, 2014 4:40 am
Byond Username: Lumipharon

Re: Research and "OriginTech" mega thread

Post by lumipharon » #77549

Some of the tech categories have three different names, depening on where you look, it's pretty dumb.
callanrockslol
Joined: Thu Apr 24, 2014 1:47 pm
Byond Username: Callanrockslol

Re: Research and "OriginTech" mega thread

Post by callanrockslol » #77602

RnD needs a cleanup in general
The most excessive signature on /tg/station13.

Still not even at the limit after 8 fucking years.
Spoiler:
Urist Boatmurdered [Security] asks, "Why does Zol have a captain-level ID?"
Zol Interbottom [Security] says, "because"

Sergie Borris lives on in our hearts

Zaros (No id) [145.9] says, "WITH MY SUPER WIZARD POWERS I CAN TELL CALLAN IS MAD."
Anderson Conagher wrote:Callan is sense.
Errorage wrote:When I see the win vista, win 7 and win 8 hourglass cursor, it makes me happy
Cause it's a circle spinning around
I smile and make circular motions with my finger to imiatate it
petethegoat wrote:slap a comment on it and call it a feature
MisterPerson wrote:>playing
Do you think this is a game?
Gun Hog wrote:Untested code baby
oranges wrote:for some reason all our hosts turn into bohemia software communities after they implode
Malkevin wrote:I was the only one that voted for you Callan.
Miggles wrote:>centration development
>trucking
ill believe it when snakes grow arms and strangle me with them

OOC: Aranclanos: that sounds like ooc in ooc related to ic to be ooc and confuse the ic
OOC: Dionysus24779: We're nearing a deep philosophical extistential level

Admin PM from-Jordie0608: 33-Jan-2552| Warned: Is a giraffe dork ~tony abbott

OOC: Saegrimr: That wasn't a call to pray right now callan jesus christ you're fast.

OOC: Eaglendia: Glad I got to see the rise, fall, rise, and fall of Zol

OOC: Armhulenn: CALLAN
OOC: Armhulenn: YOU MELTED MY FUCKING REVOLVER
OOC: Armhulenn: AND THEN
OOC: Armhulenn: GAVE ME MELTING MELONS
OOC: Armhulenn: GOD FUCKING BLESS YOU
OOC: Armhulenn: you know what's hilarious though
OOC: Armhulenn: I melted ANOTHER TRAITOR'S REVOLVER AFTER THAT

7/8/2016 never forget
Armhulen wrote:
John_Oxford wrote:>implying im not always right
all we're saying is that you're not crag son
bandit wrote:we already have a punishment for using our code for your game, it's called using our code for your game
The evil holoparasite user I can't believe its not DIO and his holoparasite I can't believe its not Skub have been defeated by the Spacedust Crusaders, but what has been taken from the station can never be returned.

OOC: TheGel: Literally a guy in a suit with a shuttle full of xenos. That's a doozy
Bombadil
Joined: Wed Apr 23, 2014 12:23 am
Byond Username: Kromgar

Re: Research and "OriginTech" mega thread

Post by Bombadil » #78115

For the love of god remove the unreliability of the protolathe its a outdated mechanic that was never finished
Planet Station Best Station

Vote Planetstation and Kor Phaeron 2017
Post Reply

Who is online

Users browsing this forum: No registered users