JACoders / OpenJK

Community effort to maintain and improve Jedi Academy (SP & MP) + Jedi Outcast (SP only) released by Raven Software
GNU General Public License v2.0
2.01k stars 612 forks source link

Text invisible in "Jedi Outcast" Menu #273

Closed Xeniac-at closed 11 years ago

Xeniac-at commented 11 years ago

How to reproduce:

Hardware: Intel Core 7, with ATI Radeon 5500 under Windows 7 64bit.

Becourse i've seen the mapped keys, but nothing else in the menu, i thougt that it meight hat to do with my localized version. (Im German). So i set the Steam Language to English and waited until Jedi Outcast was updated. The original started in with an english menu, but openjk won't display any text.

eezstreet commented 11 years ago

+set com_jk2 1 on startup.

Xeniac-at commented 11 years ago

Thank you, very much! It works fine.

I'm really sorry, but i haven't found this information. Neither in the README, nor in the bugtracker, or with google. IMHO it would be a good idea to put it in the README.

btw. thanks for this great project!

JacqylFrost commented 11 years ago

I'm having this issue too, but when I attempt to run the command, I get a message that the variable is write protected. I've tried adding it as an argument, adding it to every cfg I can think of, etc.

Razish commented 11 years ago

It has to be added on the command-line (e.g. the "target" field of a shortcut, or .bat file)

JacqylFrost commented 11 years ago

That's the first thing I tried.

"S:\Jedi Outcast\GameData\openjk_sp.x86.exe" +set com_jk2 1

is what the shortcut links to

ensiform commented 11 years ago

This was already fixed. Make sure you are up to date and not trying to set it from in game console. JK2 support is disabled by default now anyway though iirc (in the pre-built versions)

JacqylFrost commented 11 years ago

I just built the files last night, tried debug and release builds.

All the compiled files go in GameData, correct?

JacqylFrost commented 11 years ago

Anybody got an idea?

ensiform commented 11 years ago

You could try putting the default value of com_jk2 to "1" instead of "0" in code/qcommon/common.cpp since you wish to use jk2.

JacqylFrost commented 11 years ago

Yeah, but I was hoping to use one binary for either game. I'll give it a go.

ensiform commented 11 years ago

All that does is make jk2 the default.

JacqylFrost commented 11 years ago

But then I'll have the same issue trying to use that for JKA, right?

ensiform commented 11 years ago

But the issue was with the jk2 related string code which was not functioning which is what trying the jk2 as default will fix.

JacqylFrost commented 11 years ago

I'm running the build right now, I'll give it a go, thanks!

ensiform commented 11 years ago

The startup vars and cvar init code is slightly broken / incorrect in SP still compared to MP. Mind you I am at work right now and I also don't have jk2 so I can't don't anything at this time.

JacqylFrost commented 11 years ago

It looks like it's still broken...

ensiform commented 11 years ago

Dunno then. As I said I don't have jk2 so not really familiar with the situation.

ensiform commented 11 years ago

@thelolotov If you update to bb0894c is definitely a commit you'll want to update to even if it doesn't actually help the text problem.

JacqylFrost commented 11 years ago

Thanks, I'll give it a go!

JacqylFrost commented 11 years ago

Still not working, but thanks!

ensiform commented 11 years ago

Is the game not set to english?

JacqylFrost commented 11 years ago

Set to English, just like my friend who's having the same problem. Using clean Steam files as resources.

ensiform commented 11 years ago

@thelolotov what about now since xycaleth's attempted fix? Make sure to find build that includes it. The builds link in irc is nightly only now.

JacqylFrost commented 11 years ago

Issue still persists. There's just no text anywhere.

xycaleth commented 11 years ago

@thelolotov Try launching SP with this in the launch arguments: "S:\Jedi Outcast\GameData\openjk_sp.x86.exe" +set com_jk2 1 +set logfile 2 +set developer 2 And then look for the qconsole.log file in either S:\Jedi Outcast\GameData\base\ or My Documents\My Games\OpenJK\base\, and post the contents of the file here please :)

JacqylFrost commented 11 years ago

It's fairly long, as such, here's a pastebin of it:

http://pastebin.com/6Ud6ytdi

tl;dr it can't find a bunch of resources.

ensiform commented 11 years ago

Might have possible fix later, but I have to be to work shortly.

Edit: actually try now with 1c5fd64

ensiform commented 11 years ago

Anything changed?

JacqylFrost commented 11 years ago

Nope. Here's a new log:

http://pastebin.com/sR4Gm7TP

ensiform commented 11 years ago

As of: fb29f64

You should now see "Running Jedi Outcast Mode" in the console. If you see "Running Jedi Academy Mode" then there's an issue. If you don't see either at all then its probably something on your end. developer and logfile not required to see the print. probably best to leave it so you/we can see the output easier.

JacqylFrost commented 11 years ago

I'll try it tomorrow and report back, thanks!

JacqylFrost commented 11 years ago

It's running in Jedi Academy mode.

http://pastebin.com/FnA2tN5P

Very stubborn engine.

ensiform commented 11 years ago

And you've changed your cmake options to have BuildJK2Support be ON ?

It is needed, not just setting BuildJK2SPGame to ON.

Xeniac-at commented 11 years ago

Hey. I've got curios and played around. To see if this also happens with the "offical" buildbot builds. openjk-2013-07-09-fc5d54be-windows.zip from 09.07.2013 16:14 is the last build where the menufont is visible.

i hope this will help to narrow down the issue.

xycaleth commented 11 years ago

As mentioned already:

JK2 support is disabled by default now anyway though iirc (in the pre-built versions)

JK2 support is disabled by default. You need to compile the source code yourself, and explicitly enable JK2 support.

JacqylFrost commented 11 years ago

Okay, what's the point of having it disabled by default which has to be changed, and in addition, having a variable to enable it? I'm not mad, I'm just confused. I thought we were trying to combine the two engines.

Edit: And this should really be added to the readme...

xycaleth commented 11 years ago

It's mainly because JK2 support is still very early days at the moment and there's all sorts of problems with it. The other reason is that we are currently thinking of making JK2 separate from the JKA exe to make it easier for people to load and it's less of a coding headache as well.

JacqylFrost commented 11 years ago

Okay, so how do I enable JK2 support? What cmake file needs to be messed with?

xycaleth commented 11 years ago

No need to edit any files :) If you're running cmake using the GUI, then you should be able to tick the 'BuildJK2Support' box in the list of options. If you're running cmake on command line, then add -DBuildJK2Support=ON to the run arguments.

JacqylFrost commented 11 years ago

So, "cmake .. -DBuildJK2Support=ON"

?

xycaleth commented 11 years ago

You might need to add the .. after the option. So something like this: cmake -DBuildJK2Support=ON .. But other than that, it looks good.

JacqylFrost commented 11 years ago

Alright, I'll build and report back, thanks!

JacqylFrost commented 11 years ago

Okay, that change, AND changing com_jk2 to 1, worked.

JacqylFrost commented 11 years ago

Thanks for all the help, guys.

xycaleth commented 11 years ago

Yeah sorry. Forgot to mention you still needed com_jk2 set to 1 but it looks like you figured it out. Glad we finally got there!

protoss70 commented 2 years ago

+set com_jk2 1 on startup.

can you be a little more spesific like do I just open the game and run the command on the command line or do something else???

ensiform commented 2 years ago

There is no more com_jk2 since a long time.

There is a separate executable for it which isn't included in the provided openjk builds. If I can get the link to it someone can show you where to find the prebuilt OpenJO.