Please insult my programming. I'd be honored.

This forum is for actual topics of discussion that do not fit the above categories.
Locked
danielwang
Village Idiot
Joined: Fri May 03, 2002 12:17 am
Location: Denver, CO Banned: Several times!
Contact:
Org Profile

Please insult my programming. I'd be honored.

Post by danielwang » Fri Nov 14, 2003 11:36 pm

I'm trying to make an ASP.NET web-based administration and reporting system for the YARE RagnarokOnline server software. Currently, the latest build only uses legacy comma seperated value databases and cannot support SQL. Pseudo-VBCode below, feel free to BASH IT!

Should I just pirate Crystal Reports 9 and get that to work?
Does it do what I think it does?


I'd love to get Yare working with NIS/NetInfo/LDAP, but it's written in C++ and the closes I've ever gotten is C#.
Storing user base stats in the Distinguised Name (RFCrap 1718 whatever) may work, but it doesn't scale for features.
CN (Common Name) can be nick, Z (new) can be Zeny,
OU (Organizational Unit) can be Guild
but what about objects and stuff? OH NO THE XML HORRORS!

There's already a method to render a image of a character from PHP(Performance Huge Pain-n-***), and ambitions of getting a "webcam" type of world camera coded. Now how in the world could they do that? See image...

Code: Select all

<%
' Pseudo-code to parse YaRE class equipment database
' Areyo (Wang Daniel)
' 
' our db entries look like this
' 1116,Katana		,0,1,5,6,111,111,111,111,111,111,111,111,
' 1165,Masamune		,1,7,111,111,111,111,111,111,111,111,111,
' 5012,Ph.D_Hat		,99,111,111,111,111,111,111,111,111,111,
' 
' Our test goal is to be able to response.write lines like:
' 1116 Katana 0 1 5 6
' and also
' 1116 Katana Novice=Yes Swordsman=Yes Mage=No Archer=No Acolyte=No Merchant=Yes Thief=Yes Knight=No Priest=No Wizard=No Blacksmith=No Hunter=No Assassin=No 
' 1165 Masamune Novice=No Swordsman=No Mage=No Archer=No Acolyte=No Merchant=No Thief=No Knight=Yes Priest=No Wizard=No Blacksmith=No Hunter=No Assassin=No
' 5012 Ph.D Hat Novice=Yes Swordsman=Yes Mage=Yes Archer=Yes Acolyte=Yes Merchant=Yes Thief=Yes Knight=Yes Priest=Yes Wizard=Yes Blacksmith=Yes Hunter=Yes Assassin=Yes
' 
' P.S. If MySQL sucks, get ORACLE!


Import Namespace="System.IO" 

' Read the file

Dim dbFile As File 
Dim dbGimme As StreamReader 
Dim dbRaw As String 

dbGimme = dbFile.OpenText(/yare/cfg/class_equip.txt); 
dbRaw = dbGimme.ReadToEnd(); 
dbGimme.Close(); 

' Test code to populate the database manually. for debug purposes
' dbRaw = "1116,Katana,0,1,5,6,111,111,111,111,111,111,111,111,"\n"1165,Masamune,1,7,111,111,111,111,111,111,111,111,111,"\n"5012,Ph.D_Hat,99,111,111,111,111,111,111,111,111,111,"


' Split it up into entries
' I'm going to REALLY hurt performance by dynamically populating
' the array dimensions. There should be a good way to count the
' lines in a file, I believe.

Dim dbEntries[] as String
dbEntries = dbRaw.split({\n})

' Test code to split the database into entreis manually
' Dim dbEntries[2] as SString
' dbEntries[0] = "1116,Katana,0,1,5,6,111,111,111,111,111,111,111,111,"
' dbEntries[1] = "1165,Masamune,1,7,111,111,111,111,111,111,111,111,111,"
' dbEntries[2] = "5012,Ph.D_Hat,99,111,111,111,111,111,111,111,111,111,"

' Split it up into fields
' Really Nasty!
' Parsing has to be done at the same time for performance reasons
' we don't want to store an array, then process it, slow

Dim dbFields[] as String

For Each i in dbEntries[i] {
dbFields = dbEntries[i].split(',')
end for

' Test code to split the entries into fields, manually
' Contains only information for 1116 Katana
' dbFields[0] = "1116"
' dbFields[1] = "Katana"
' dbFields[2] = "0"
' dbFields[3] = "1"
' dbFields[4] = "5"
' dbFields[5] = "6"
' dbFields[6] = "111"
' dbFields[7] = "111"
' dbFields[8] = "111"
' dbFields[9] = "111"
' dbFields[10] = "111"
' dbFields[11] = "111"
' dbFields[12] = "111"
' dbFields[13] = "111"

' we can order these by ItemID number
size = dbEntries.count
Dim dbRow[size] as String
' for each i in dbEntries[i] ' Or: for 0 through size
for (i=0, i <=dbEntries, i++) {
dim Fields As String
fields = dbEntries[i].split(',')
item = fields[1]
' Parsing code to order classes here, unless we already did it
dbRow[item] = dbEntries[i]
}

***not done***
<a href="http://www.animetheory.com/" title="AnimeTheory" class="gensmall">AnimeTheory.</a>
<a href="http://www.animemusicvideos.org/search/ ... %20park%22" title="Seach videos NOT by danielwang" class="gen">Make sure you don't download videos that suck!</a>

User avatar
Edahs Nibas
Joined: Fri Nov 14, 2003 10:26 pm
Org Profile

Post by Edahs Nibas » Fri Nov 14, 2003 11:44 pm

Please report to your local Phasmus and Company Liquidation Facillity for liquidation. I stopped at reading ".NET". Please do not start me on the evils of .NET.
Hey, it looks like you're writing a letter!
Glinko.
rm -rf /*

User avatar
Otohiko
Joined: Mon May 05, 2003 8:32 pm
Org Profile

Post by Otohiko » Fri Nov 14, 2003 11:46 pm

OMG you're back. :D

And your programming....


sucks?

Is that a good enough insult or what?
The Birds are using humanity in order to throw something terrifying at this green pig. And then what happens to us all later, that’s simply not important to them…

User avatar
Otohiko
Joined: Mon May 05, 2003 8:32 pm
Org Profile

Post by Otohiko » Fri Nov 14, 2003 11:57 pm

Remind me again why it is that I missed seeing your technobabble around here so much...



...but yea, I did. Seriously. :)
The Birds are using humanity in order to throw something terrifying at this green pig. And then what happens to us all later, that’s simply not important to them…

danielwang
Village Idiot
Joined: Fri May 03, 2002 12:17 am
Location: Denver, CO Banned: Several times!
Contact:
Org Profile

Post by danielwang » Fri Nov 14, 2003 11:58 pm

(image)
What is this? It's way too good to be Crystal Reports 9!
Image
<a href="http://www.animetheory.com/" title="AnimeTheory" class="gensmall">AnimeTheory.</a>
<a href="http://www.animemusicvideos.org/search/ ... %20park%22" title="Seach videos NOT by danielwang" class="gen">Make sure you don't download videos that suck!</a>

User avatar
J-0080
Joined: Thu May 01, 2003 7:37 pm
Location: Mid-West Side Laying On: Fangirls
Org Profile

Post by J-0080 » Sat Nov 15, 2003 12:53 am

Tab wrote:

Code: Select all

public class Post
{
     public static void main(String[] args)
     {
          System.out.println("wow tab is a fucking geek");
          System.out.println("and.. like.. trythil or someone isn't even here");
          System.out.print("to appreciate it");
          System.out.println("but that's okay because danielwang sucks");
     }
}
paizuri wrote:There's also no need for introductions because we're generally a friendly bunch and will welcome you with wide open arms anyway.

User avatar
Propyro
Joined: Tue Mar 11, 2003 9:09 am
Location: Ontario
Org Profile

Post by Propyro » Sat Nov 15, 2003 1:42 am

yea i like programming but i sucking suck at it ... man after not seeing you post absolute bullshit for a while i realized how much i miss seeing it like otohiko ... don't get too used to this warm reception though ...

[/|\]

User avatar
Gaikotsu
Joined: Tue Jul 30, 2002 12:07 am
Location: 2 miles past the end of the Earth, (local joke)
Contact:
Org Profile

Post by Gaikotsu » Sat Nov 15, 2003 3:52 am

Hmm. . . not knowing a whole lot about programming myself, the only insult I can honestly apply here is: Why the hell are you wasting your time with Ragnarok Online anyway?! Ye gods that game was/is horrible!

Okay, so it's not technically even an insult, but it needed to be said.
Who knows what fires burn in the souls of others, or what burdens weigh upon their hearts?

User avatar
Tab.
Joined: Tue May 13, 2003 10:36 pm
Status: SLP
Location: gayville
Org Profile

Post by Tab. » Sat Nov 15, 2003 4:58 am

J-0080 wrote:
Tab wrote:

Code: Select all

public class Post
{
     public static void main(String[] args)
     {
          System.out.println("wow tab is a fucking geek");
          System.out.println("and.. like.. trythil or someone isn't even here");
          System.out.print("to appreciate it");
          System.out.println("but that's okay because danielwang sucks");
     }
}
YOU HAXOR
that's supposed to be propyro sucks
my code was violated
◔ ◡ ◔

User avatar
kthulhu
Joined: Thu May 30, 2002 6:01 pm
Location: At the pony stable, brushing the pretty ponies
Org Profile

Post by kthulhu » Sat Nov 15, 2003 6:07 am

Don't release it as open source, then.

OMG TECH FUNNY.
I'm out...

Locked

Return to “General Off Topic”