UGX-Mods Login

or login with an authentication provider below
Sign In with Google
Sign In with Twitter
Sign In with Discord
Sign In with Steam
Sign In with Facebook
Sign In with Twitch

[C#] String problem

broken avatar :(
Created 11 years ago
by Deleted User
0 Members and 1 Guest are viewing this topic.
1,626 views
broken avatar :(
  • DeletedUser
  • Deleted Member
×
broken avatar :(
DeletedUser
This user is deleted :(
So, I'm trying to do an app that automatically packages everything in a map to an archive and I have a problem, because the result xmodelsurf should've been
Code Snippet
Plaintext
iewmodel_ak471
but it is instead
Code Snippet
Plaintext
el_ak471

EDIT:
the curChar > 64 condition is actually this:
Code Snippet
Plaintext
curChar > 47

Double Post Merge: May 10, 2015, 03:41:07 pm
Welp, turns out that the startIndex is not fixed when opening it via code, but it is when opening the file in a hex editor :|

Double Post Merge: May 10, 2015, 04:09:11 pm
Turns out that I had to do File.ReadAllBytes and convert to string, not File.ReadAllText, File.ReadAllText can discard some crucial chars
Marked as best answer by Deleted User 7 months ago
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 14 September 2013
Last active: 6 years ago
Posts
1,895
Respect
Forum Rank
Zombie Destroyer
Primary Group
Scripter
My Groups
More
My Contact & Social Links
More
Personal Quote
BE ORIGINAL
Signature
×
MakeCents's Groups
Mapper Has released one or more maps to the UGX-Mods community.
Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
I ran into similar issues in Python when parsing the models and materials and had to open/read the file in binary mode to get the full file.
Last Edit: May 11, 2015, 01:33:32 pm by MakeCents

 
Loading ...