Loading...
  OR  Zero-K Name:    Password:   

help with getting clan ID

15 posts, 697 views
Post comment
Filter:    Player:  
sort
9 years ago
i've been trying to set up my own clan for me and my friends to join and be able to participate in the planetwars thing by "being a research lab" when hit submit with everything filled in i get this error...


Line 193: var im = Image.FromStream(image.InputStream);
Line 194: if (im.Width != 64 || im.Height != 64) im = im.GetResized(64, 64, InterpolationMode.HighQualityBicubic);
Line 195: db.SubmitChanges(); // needed to get clan id for image url - stupid way really
Line 196: im.Save(Server.MapPath(clan.GetImageUrl()));
Line 197: }

i did not edit this i just copied off of the error page.... do i need to get myself a clan ID? and if so... how?
+0 / -0
Hmm I would need to see rest of the bug. Maybe you didnt fill some info or add clan image? Needs to be png..

Also Planetwars is not active atm, need to focus on other things now before restarting next season of PW.
+1 / -0
9 years ago
it is PNG i made the main logo myself in fact using photoshop, but i will copy the whole page here( copy pasting it):


Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Data.SqlClient.SqlException: String or binary data would be truncated.
The statement has been terminated.

source error:

Line 193: var im = Image.FromStream(image.InputStream);
Line 194: if (im.Width != 64 || im.Height != 64) im = im.GetResized(64, 64, InterpolationMode.HighQualityBicubic);
Line 195: db.SubmitChanges(); // needed to get clan id for image url - stupid way really
Line 196: im.Save(Server.MapPath(clan.GetImageUrl()));
Line 197: }

source file: c:\TeamCity\buildAgent\work\b8c78a57f4c14bae\Zero-K.info\Controllers\ClansController.cs Line: 195


here is the stack trace: ... ok i've tried posting the stack trace the website won't let me submit it here and my geuss probably for good reason
+0 / -0
9 years ago
Upload it to pastebin.com and post the link here.
+1 / -0


9 years ago
Maybe your clan name is too long, can you post/screenshot the filled page please?
+1 / -0


9 years ago
I believe this may be part of this.
+1 / -0
9 years ago
clan name:A.G. Laboratories

shortcut: AGlabs

faction: no faction (hit the check box)

internal topic(warning is long):

Ok so here's how we do things, each of you get ONE laboratory wing until we have our own planet to allow us to test on larger scale. making new sections of the station is expensive and we are strapped for cash due the our fusion reactor having a glitch. you know how expensive that is and getting a team to come out and fix it is just as big a cost. also i will note that you may not experiment with weapons right now due to the lack of power, life support is more important than your nifty pulse thingy, I'm looking at you sector 3.

On a brighter note we have been given access to a ship with capable warp drive, i know sections 1,2,4,5 and 6 have been wanting to convert the station to a more mobile form, so i suggest you take the thing apart and figure it out. i expect a report in one month.

as for sector three i want you working with the team to get the reactor up and running, i know you want to begin working on those energy field launchers and the bloody pulse weapon. so you get to help them fix the reactor so you can get back to work A.S.A.P once you do this we will have section 2 work with you.

on an even better note we now have our commander production factory and have now been recognized under galactic council as a workable laboratory. as such they have given us several blueprints, all we need now is a given area to test those blueprints from each of you, starting with section 6 and ending with section 1.

we have one last thing on our agenda this month, with D.O.O.P winning the robot war we now must en-state a protocol into our bots to make sure they do not give their opinion in the sight of others but must now adhere to the new rules. i myself will not enforce them too harshly as long as the androids and bots continue to cooperate and work with us... but I must say you keep your main emotional and self-thought protocols on low priority and your main command line on high priority during visit's from out-siding officials, we do not know if this count's for the cyborgs or the hybrid children that we received yesterday but I'm sure as long as they have biological qualities they won't be entirely racist towards you.

thank you, that will be all for today.

description(public): We are a research facility dedicated to commander design, experimental weaponry, and terraforming

link to entirety of error: http://pastebin.com/YeiFVJPd

+0 / -0

9 years ago
The error happens when processing the clan image.
+0 / -0


9 years ago
Adding this issue to https://github.com/ZeroK-RTS/Zero-K-Infrastructure/issues/247

Definitely related.
+0 / -0
9 years ago
well i'm glad you guys actually came back to me on this issue! really... it means a lot
+0 / -0


9 years ago
Internal topic is limited to 500 characters.
+0 / -0
9 years ago
REally? that's whats going on here? well... i geuss i'll try again
+0 / -0
what do you know! it works! ... why isnt it said that that's the limit on characters in the internal topic.

EDIT: it moved my clan to humanity rising... The hell were a neutral faction!

EDIT2: heres the pastbin link from where i tried to change it back to neutral after it forcing me onto humanity rising: http://pastebin.com/r0fHhnwy

EDIT 3: ok i fixed it by simply disbanding the clan.. i'll be remaking it shortly

man i hope this will be worth it in the end.
+0 / -0


9 years ago
Oh, sorry. Should work now.
+0 / -0
9 years ago
it does! thank you!
+0 / -0