Jump to content


Photo

Schism2 (patches)


  • Please log in to reply
No replies to this topic

#1 openxdkman

openxdkman

    X-S Genius

  • Moderator
  • PipPipPipPip
  • 823 posts
  • Xbox Version:unk
  • 360 version:unknown

Posted 12 December 2006 - 10:25 PM

To start in windowed mode and avoid possible black screen, in Game1.cs, at line 70, replace

graphics.PreferredBackBufferWidth = 1024;
graphics.PreferredBackBufferHeight = 768;
graphics.ToggleFullScreen();
with
graphics.PreferredBackBufferWidth = 800;
graphics.PreferredBackBufferHeight = 600;
graphics.ToggleFullScreen();
graphics.ToggleFullScreen();


Then, fix an insane error due to Convert.ToSingle that seem broken in xna gse final (amazing!)
In XNAFont.cs, at line 94, replace

ret.UVData.Add(c, new XNAFontUV (
Convert.ToSingle(tr.GetAttribute("u")),
Convert.ToSingle(tr.GetAttribute("v")),
Convert.ToInt32(tr.GetAttribute("width"))));


with

//Convert.ToSingle seems to be broken in xba gse final, at least in this source...
float u, v;
int Width;
str = tr.GetAttribute("u");
str = str.Replace("0.","");
u = (float)(((double)Convert.ToInt32(str)) / (Math.Exp(Math.Log(10.0f) * ((double)str.Length))));
str = tr.GetAttribute("v");
str = str.Replace("0.", "");
v = (float)(((double)Convert.ToInt32(str)) / (Math.Exp(Math.Log(10.0f) * ((double)str.Length))));
str = tr.GetAttribute("width");
Width = Convert.ToInt32(str);
ret.UVData.Add(c, new XNAFontUV(u, v, Width));





I have no idea what this game is about, and what keyboard controls are... and I don't care (2D)...




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users