Do you think I could just leave this part blank and it'd be okay? We're just going to replace the whole thing with a header image anyway, right?
You are not logged in.
In the super secret soon-to-be-released bot I'm writing I display EE blocks and smileys in PictureBoxes, where the item PNGs are stored in and retrieved from the application's resources folder.
All the block images are saved with their IDs for the file name (Credz to ZeldaXD and Jesse for the images themselves). The problem is that I'd like to access a block or a set of blocks by its PayVault name (e.g. "bricksign" or "brickbgcanvas"), and it's a little too time consuming to do manually write and maintain a list to connect the two.
In short, I want some way to associate a block or block pack with its name, so in future I can simply do:
int portalID = getIDFromName("brickportal");
int[] glassBlockIDs = getPackageFromName("brickglass");
N.B.
I'm aware of ParadoxInTheVoid's list of block packs and IDs at http://forums.everybodyedits.com/viewtopic.php?id=29119, but it's not complete.
I'm not intending to use CupCake or any other SDK for this, so gtfo Processor.
One bot to rule them all, one bot to find them. One bot to bring them all... and with this cliché blind them.
Offline
I made the list for my bot, I have plans to complete it but if anyone else would do so that would be great.
Offline
I made the list for my bot, I have plans to complete it but if anyone else would do so that would be great.
If you could share it on a github or a pastebin we can finish it for you, otherwise not.
Offline
ParadoxInTheVoid wrote:I made the list for my bot, I have plans to complete it but if anyone else would do so that would be great.
If you could share it on a github or a pastebin we can finish it for you, otherwise not.
Not sure how pastebin is gonna work, but here is what I have for now:
http://pastebin.com/1n8V52Mp
Offline
I'm sure you decompiled EE's source and saw the list of blocks
because it's there
You could take the list and loop through each line. If it has the markings of a block, you parse it for the ID and name.
Otherwise skip on.
For the ones that have one ID, they're one. For those that have multiple, they're packages.
gg
Those who can't do, teach.
A common mistake that people make when trying to design something completely foolproof is to underestimate the ingenuity of complete fools.
It is a well-known fact that those people who must want to rule people are, ipso facto, those least suited to do it... anyone who is capable of getting themselves made President should on no account be allowed to do the job.
I think fish is nice, but then I think that rain is wet, so who am I to judge?
For a moment, nothing happened. Then, after a second or so, nothing continued to happen.
Offline
I'm sure you decompiled EE's source and saw the list of blocks
Where be this list within the source?
One bot to rule them all, one bot to find them. One bot to bring them all... and with this cliché blind them.
Offline
Took the liberty of looking through the source and finding the list for you.
As far as I can tell it contains all smileys, blocks but not the aura's and all aura's.
Every item is also categorized for every package.
I got the method that contained all the items in RAW CODE here:
http://pastebin.com/fDtjQLRa
It may require a bit difficult parser/stripper to put the content into a format you prefer, so be prepared to get working.
I will write a parser and parse the list myself, but since you want it pretty soon it might be smarter to just do it yourself right now.
The parsed list I'm going to make will be public too all, but the people would be stuck with my format, which would be another reason why you might want to do it yourself.
Offline
Try this for fun.
You know, even if you didn't want an SDK, the source itself would likely have held your answer anyway.
The fun comes from the fact that you still have to parse something. Further, the EE code was rather straightforward.
Title|PayvaultID|list,of,block,ids
Those who can't do, teach.
A common mistake that people make when trying to design something completely foolproof is to underestimate the ingenuity of complete fools.
It is a well-known fact that those people who must want to rule people are, ipso facto, those least suited to do it... anyone who is capable of getting themselves made President should on no account be allowed to do the job.
I think fish is nice, but then I think that rain is wet, so who am I to judge?
For a moment, nothing happened. Then, after a second or so, nothing continued to happen.
Offline
I got the method that contained all the items in RAW CODE here:http://pastebin.com/fDtjQLRa
Try this for fun.
Awesome! Ty both.
One bot to rule them all, one bot to find them. One bot to bring them all... and with this cliché blind them.
Offline
I generated a list self. But it doesn't have the special blocks.
Regexp <3
http://pastebin.com/pW87Qi23
The tool to extract the as-file with: http://www.mediafire.com/download/ipnri … ractor.zip
Sourcecode: http://www.mediafire.com/download/x7yop … ractor.zip
Awesome Tool to test regexp in: http://www.regexbuddy.com/
Offline
I really should take on some RegExp. However, it's too much to take in with 5 minutes. Lol
I just used some C# splits and such.
Those who can't do, teach.
A common mistake that people make when trying to design something completely foolproof is to underestimate the ingenuity of complete fools.
It is a well-known fact that those people who must want to rule people are, ipso facto, those least suited to do it... anyone who is capable of getting themselves made President should on no account be allowed to do the job.
I think fish is nice, but then I think that rain is wet, so who am I to judge?
For a moment, nothing happened. Then, after a second or so, nothing continued to happen.
Offline
I really should take on some RegExp. However, it's too much to take in with 5 minutes. Lol
I just used some C# splits and such.
Isn't splits just a lazy way?
Offline
Eyy now. I got done right quick, thanks.
You can go take your REGEXP somewhere else.
Tbh, too complicated for this setup. Now, if we needed to find dates, or special looking sets of strings, etc...
Those who can't do, teach.
A common mistake that people make when trying to design something completely foolproof is to underestimate the ingenuity of complete fools.
It is a well-known fact that those people who must want to rule people are, ipso facto, those least suited to do it... anyone who is capable of getting themselves made President should on no account be allowed to do the job.
I think fish is nice, but then I think that rain is wet, so who am I to judge?
For a moment, nothing happened. Then, after a second or so, nothing continued to happen.
Offline
I generated a list self. But it doesn't have the special blocks.
Being stubborn me, I'm going to make a list myself c:
Awesome Tool to test regexp in: http://www.regexbuddy.com/
Personally prefer https://www.debuggex.com/ because of all the nice visuals.
ETbh, too complicated for this setup. Now, if we needed to find dates, or special looking sets of strings, etc...
Once you know how to user regex, it's really simple and done in literally 5 seconds (at least, it is for me).
Offline
Personally prefer https://www.debuggex.com/ because of all the nice visuals.
Yeah I guess we prefer different regex test tools. I found regexbuddy in a regex book.
Tried it and like it really much.
Being stubborn me, I'm going to make a list myself c:
Awesome. Are you going to share that list?
Offline
den3107 wrote:Being stubborn me, I'm going to make a list myself c:
Awesome. Are you going to share that list?
Due to work I don't have as much free time, and I don't want to put all of it into coding when I'm probably not going to use the libs cus I don't have any ideas for them (thinking about a public bot, but shouldn't know what special things to add).
But yes, I am going to upload the list, though in a bit different fashion:
I'm going to make 2 versions:
1) a class using your method, with prefilled arrays (though I'm gonna work with Lists cus I prefer those), where a textual version of those Lists can be put in the class when an update is required.
Less bit of this method is that it requires you to recompile your program, shouldn't be too much of a problem, but meh, mostly when using it for releases.
2) a class using my method, a CSV-file where the class contains a de-parser and for the rests works the exact same as the other class.
Less bit of this is that, when you work with public releases, it might be a bit fiddling the first time to include the file to your releases easily.
In both cases the class will be fully equipped with all kinds of functions to read the lists and find elements in the lists in several ways etc. etc. etc.
Just to make life easier for others and keep me occupied for a little longer.
Offline
"5 seconds regex" ok sounds good
Can't wait for that 5-second list of blocks :3
Those who can't do, teach.
A common mistake that people make when trying to design something completely foolproof is to underestimate the ingenuity of complete fools.
It is a well-known fact that those people who must want to rule people are, ipso facto, those least suited to do it... anyone who is capable of getting themselves made President should on no account be allowed to do the job.
I think fish is nice, but then I think that rain is wet, so who am I to judge?
For a moment, nothing happened. Then, after a second or so, nothing continued to happen.
Offline
"5 seconds regex" ok sounds good
Can't wait for that 5-second list of blocks :3
They're easy to write (when you know how it works) but hard to read.
Aside from that I kinda do all kinds of stuff around it which slows the process.
Offline
Alright, so made the lists and the class that uses the pre-made list.
List with all items (smileys, auras and blocks) formatted:
http://pastebin.com/aebghZaE
List with all blocks in a list, put into object created for a specific class:
http://pastebin.com/7wtsaWvj
The specific class I talked about earlier, this class contains some methods that should allow you to search for every parameter a block has in every way:
http://pastebin.com/8YThj57t
P.S. Yes, I really like Lists, now don't go ask why I didn't use arrays...
Offline
Alright, so made the lists and the class that uses the pre-made list.
List with all items (smileys, auras and blocks) formatted:
http://pastebin.com/aebghZaEList with all blocks in a list, put into object created for a specific class:
http://pastebin.com/7wtsaWvjThe specific class I talked about earlier, this class contains some methods that should allow you to search for every parameter a block has in every way:
http://pastebin.com/8YThj57tP.S. Yes, I really like Lists, now don't go ask why I didn't use arrays...
Very good on all of this, I probably never would of done this.
Offline
[ Started around 1732786475.2372 - Generated in 0.158 seconds, 13 queries executed - Memory usage: 1.74 MiB (Peak: 1.99 MiB) ]