Did you know? All of these messages will likely be replaced before release.

UnrealEngine1 PreProcessor

For questions and discussion about UnrealEd, UnrealScript, and other aspects of Unreal Engine design.

Moderators: ividyon, Semfry, zYnthetic

User avatar Raven
Trustee Member Trustee Member
Posts: 807
Joined: 12 Nov 2007, 09:39
Location: Nørresundby
Contact:

Subject:

Post Posted: 25 Aug 2008, 00:26

Nope. It's only for coding. If anyone have suggestions please write 'em here or pm. In future I think I'll try to make it as ucc commandlet.

EDIT: UPDATE

new features:
- globals can be defined in project file in special [globals] group or in commandline with special -global switch:

Code: Select all

[globals]
global_value1=test1
global_value2=test2
or

Code: Select all

uenginepp.exe ..\SomeScript -clean -debug -global testglobal1=test1 -global testglobal2=test2


fixes
- if defined variable does not exists (in `write or `check), it's name will be used instead
Madness, as you know, is like gravity…all it takes is a little push!
Image
http://turniej.unreal.pl/portfolio

User avatar Jethro
Skaarj Warlord Skaarj Warlord
Posts: 686
Joined: 12 Nov 2007, 00:15
Location: Aboard Von Braun

Subject:

Post Posted: 25 Aug 2008, 21:18

Same input as previously, still no luck....

Code: Select all

?>uenginepp.exe projects\test.upc
------------------------------------------
         UnralEngine PreProcessor
------------------------------------------
 Version : 0.1.0
 Build   : 24.08.2008
------------------------------------------
 Using project definition: projects\test.upc.
 Using project directory projects\.
 Debug mode: on.
------------------------------------------

Warning: cannot open a res stream for writing in process_file.php on line 1

Warning: fopen(res:///PHP/projects\\classes\globals.uc): failed to open stream:
No such file or directory in process_file.php on line 1

Warning: fwrite(): supplied argument is not a valid stream resource in process_f
ile.php on line 1

Warning: fclose(): supplied argument is not a valid stream resource in process_f
ile.php on line 1
Processing file: main.uc...
...saving file: projects\/classes/main.uc
...error saving data in resource Resource id #15 (stream).
...error saving data in resource Resource id #15 (stream).
...error saving data in resource Resource id #15 (stream).
...error saving data in resource Resource id #15 (stream).
...error saving data in resource Resource id #15 (stream).
...error saving data in resource Resource id #15 (stream).
...finished
------------------------------------------
2 uc files found.
1 uc files parsed.
Execution time: 0.04 seconds.


Code: Select all

?>uenginepp.exe projects/classes_ucp -debug -clean
------------------------------------------
         UnralEngine PreProcessor
------------------------------------------
 Version : 0.1.0
 Build   : 24.08.2008
------------------------------------------
 Using project directory projects/classes_ucp.
 Debug mode: on.
------------------------------------------
Processing file: main.uc...
...saving file: projects/classes_ucp//main.uc
...error saving data in resource Resource id #16 (stream).
...error saving data in resource Resource id #16 (stream).
...error saving data in resource Resource id #16 (stream).
...error saving data in resource Resource id #16 (stream).
...error saving data in resource Resource id #16 (stream).
...error saving data in resource Resource id #16 (stream).
...finished
------------------------------------------
2 uc files found.
1 uc files parsed.
Execution time: 0.03 seconds.
UBerserker wrote:Story: totally guessed that Skeletor was the thief.

User avatar Raven
Trustee Member Trustee Member
Posts: 807
Joined: 12 Nov 2007, 09:39
Location: Nørresundby
Contact:

Subject:

Post Posted: 25 Aug 2008, 21:42

Strange, it seems it still depends on some files. I'll investigate it later, but for now, I've updated archive with all files I've used to compile preprocessor.

EDIT:

use / not \.
Madness, as you know, is like gravity…all it takes is a little push!
Image
http://turniej.unreal.pl/portfolio

User avatar Jethro
Skaarj Warlord Skaarj Warlord
Posts: 686
Joined: 12 Nov 2007, 00:15
Location: Aboard Von Braun

Subject:

Post Posted: 25 Aug 2008, 22:02

That's.... unexpected. You wrote it in PHP?

Now it works, although opening a file via "w+" fails for me - it's appending, and for some strange reason it requires a file to actually exist. Also, I don't quite see the need for it.

Anyway, looks promising! :tup:
More comments if I have more time.
UBerserker wrote:Story: totally guessed that Skeletor was the thief.

User avatar Raven
Trustee Member Trustee Member
Posts: 807
Joined: 12 Nov 2007, 09:39
Location: Nørresundby
Contact:

Subject:

Post Posted: 25 Aug 2008, 22:07

Yes, php :) log time ago I wrote it just as my personal server app, now I've found compiler :)

In theory it should be embedded in exe, but for some strange reason it doesn't work like that :P. Anyway, I'm planning to extend it as ucc commandlet :)
Madness, as you know, is like gravity…all it takes is a little push!
Image
http://turniej.unreal.pl/portfolio

Previous

Who is online

Users browsing this forum: No registered users and 3 guests