lfnetwork.com mark read register faq members calendar

Thread: Editing q_shared.h
Thread Tools Display Modes
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Old 01-28-2005, 02:37 PM   #1
Tinny
 
Tinny's Avatar
 
Join Date: Apr 2002
Posts: 1,188
Editing q_shared.h

Hey guys, I was trying to make a hack by including a header file i wrote in q_shared.h. This was used to flexibly alter some things in q_shared.h as if i edited it directly it would crash the game. But i've tried a new thing and sometimes it works but other times it crashes the game in the q_shared.c file at this function:

char * QDECL va( const char *format, ... ) {
va_list argptr;
static char string[2][32000]; // in case va is called by nested functions
static int index = 0;
char *buf;

buf = string[index & 1];
index++;

va_start (argptr, format);
vsprintf (buf, format,argptr);
va_end (argptr);

return buf;
}


It crashes at the line vsprintf (buf, format,argptr);

Does anyone have any idea what is going on?


Redeemed!

An old school mod for jedi academy.
Tinny is offline   you may: quote & reply,
Old 01-29-2005, 10:55 PM   #2
Wudan
Got Balance?
 
Wudan's Avatar
 
Join Date: Oct 2002
Location: Salt Lake, UT
Posts: 1,442
Yes, your modified code caused the engine to do something that it didn't want to, causing the crash.

Sorry, messing with q_shared.h/.c is a very dangerous task


Mt-Wudan.com
I made a silly little program called Dragon, which is an animation tool for the GLA format, used in Jedi Outcast, Jedi Academy and Krakatoa.
Wudan is offline   you may: quote & reply,
Old 01-30-2005, 11:42 AM   #3
razorace
Impressive, Terran!
 
razorace's Avatar
 
Join Date: May 2002
Posts: 9,187
What are you trying to do?


---Jedi Guardian of the Newbie Questions
---Masters of the Force Team Leader / Creator
---Open Jedi Project Lead Moderator / Co-Founder
razorace is offline   you may: quote & reply,
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Go Back   LucasForums > Network > JediKnight Series > Editing Central > JA Coding > Editing q_shared.h

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 10:47 AM.

LFNetwork, LLC ©2002-2011 - All rights reserved.
Powered by vBulletin®
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.