MODSonline
  Welcome Guest to MODSonline Home | Forums | Register | Login
Main-Menu
Home
Login
Register
Add Download
Add News
Add Tutorial *
Forums

Advertise
Affiliate Store US *
Affiliate Store UK *
Affiliate Store CA *
Angry Letter Generator
Avatar Upload
Calendar of Games
Contact
Downloads
FAQs
Forums
Member List
Member Projects
News
News Grabber *
Policy
Polls
Private Messages
Reviews
Screenshot Gallery
Search
Servers - Game
Store - Shirts *
Subscribe
Topics
Tutorials
Weblinks
Wiki *
Tutorials
CoD Mapping
CoDUO Mapping
CoD2 Mapping
CoD4 Mapping
CoDWW Mapping
CoD FAQs
HL2 Mapping
HL2 FAQs
SOF1 Mapping
Crysis Mapping
Q4 Mapping
Doom 3 Mapping
Doom 3 FAQs
UT2K3 Mapping
SOF2 Mapping
SOF2 FAQs

Lightray Modeling
General Modeling
General Modding
Adobe Photoshop
Common Mapping Errors

Readme.txt Generator
Members-Online
4sakin [Forum]
[-X-]Fried... [Forum]
Tally [Forum]
krid [Forum]
Boltriflem... [Forum]
Welshy [Today]

6 Members and 8 Guests
Chat MODSonline
0 People Now Chatting
MODSOnline TeamSpeak

download TeamSpeak

In-The-News
Monday, Dec. 1st
A message from foyleman
Sunday, Nov. 30th
MODSonair 156 Live
Friday, Nov. 28th
MODSonair Episode 155
Wednesday, Nov. 26th
MODSonair Forum Buttons
Monday, Nov. 24th
Holiday Gift Guide 2008 - PC
Latest Poll
Single or Multiplayer maps for World at War?
Single-Player 29.21%
Multiplayer 62.92%
WHAT!? The tools are out? 7.87%
Read More...
10 comments

Newsletter
Name:
Email:
Newsletter Archives
Your Membership
User Name:
Password:
Register.
In The Forums
[Prefab] Sliding doors
CoD:WW Level Des.. Posts: (2) Views: (41) by Watter
Fog Create_FX help
CoD:WW Level Des.. Posts: (5) Views: (58) by Sgt.Rampage
missing loadscreen
CoD:WW Level Des.. Posts: (1) Views: (12) by *UWS*KILL_ME_NOW
[Tutorial] Zombies Game Mode - EASY -
CoD:WW Level Des.. Posts: (96) Views: (812) by Papik
Art of War Central Quake 4 Mods for Dummies
CoDWW Download
Forums
MODSonline.com Forums

Welcome to the MODSonline.com forums. Looking for Frequently Asked Questions? Check out our FAQs section or search it out using the SEARCH link below. If you are new here, you may want to check out our rules and this great user's guide to the forums and the website.
For more mapping and modding information, see our Wiki: MODSonWiki.com

Jump To:
Forum: All Forums : Call of Duty 4
Category: CoD 4 Level Design
CoD 4 mapping and level design.
Moderators: foyleman, rEdrUmMDK, Foxhound, Rasta, StrYdeR, The_Caretaker, batistablr, playername, Welshy
Latest Posts
Subscribed Posts
Search
Restricted Access Restricted Access
Page
Previous Page Next Page
subscribe
Author Topic: Rain or Snow
-HeadHUNTER-
General Member
Since: Jan 3, 2006
Posts: 8
Last: Feb 26, 2008
[view latest posts]
Level 0
Category: CoD 4 Level Design
Posted: Friday, Feb. 8, 2008 12:41 pm
i thaught ist not possible to open the ff files ;) how can i open them?

sevenz do u managed it to get rain on ur map? im totally lost at the moment :/

edited on Feb. 8, 2008 12:46 pm by SST_Co2_HeadHUNTER
Sevenz
General Member
Since: Apr 24, 2006
Posts: 1134
Last: Dec 3, 2008
[view latest posts]
Level 8
Category: CoD 4 Level Design
Posted: Friday, Feb. 8, 2008 03:01 pm
you can extract plain text (like scripts) only.

1. Get a zlib-decompression tool, i used Simplyzip

2. Get a hex editor, i used HxD

3. Open map fastfile, eg. \zone\english\mp_farm.ff using HxD

4. remove first 12 blocks/bytes (hex 0 to B):
49 57 66 66 75 31 30 30 05 00 00 00 | IWffu100....
(select with mouse, press Delete key on keyboard)

5. Save as mp_farm.zlib or whatever, extionsion actually doesn't matter

6. Start Simplyzip, go to menu "External progs" > "ZLIB (pack/unpack)"

7. Select mp_farm.zlib, check "Decompress" and click start

8. Open mp_farm (without extionsion, Simplyzip created that file in the folder of the input file) with HxD

9. Search for "maps/createfx/mp_farm_fx.gsc", it will jump to offset 027C3CFA (hex) in this case. Select the two slashes directly behind. You'll need to remember this offset (027C3D17), write it down somewhere.

10. Open search dialog again, set datatype from text to hex, and search for FFFFFFFF (indicates beginning and ending of a file; search direction forward!)

11. Write down offset of the bracket few characters before file ends (marked red, blue is what is selected due to seach):
"emt_metal_rattle_squeak";.. ..}...˙˙˙˙....˙˙˙˙maps/createart/mp_farm_art.gsc

Offset is 027C7503 in this case

12. Open Select Block dialog, enter both offsets you wrote down and click OK (Edit menu, above select all, "Bearbeiten" > "Block auswählen")

13. Copy the selected text (which is actually the content of maps/createfx/mp_farm_fx.gsc) to a new file within HxD

14. Save it somewhere named "mp_farm_fx.gsc", eg. \zone\english\extracted\maps\createfx (create that folder structure to bring order into extracted files)

15. Redo step 9-14 until you got all files from mp_farm you want and even for other maps. To find offsets easily, search for FFFFFFFF to find beginnings and endings of files (as described above)


already ripped scripts: http://rapidshare.com/files/90224678/Ripped_CoD4_Scripts.zip.html

got them from ModCod4.com (SP & MP), might be incomplete.

edited on Feb. 8, 2008 03:06 pm by Sevenz
-HeadHUNTER-
General Member
Since: Jan 3, 2006
Posts: 8
Last: Feb 26, 2008
[view latest posts]
Level 0
Category: CoD 4 Level Design
Posted: Friday, Feb. 8, 2008 03:50 pm
thx for the download link ;) i dont need to open ff files because there are all files i need ...right?

but now i have to search the gsc files and combine a few codes to get my rain? is that right?

i think i have to get rid of that rain map :( havent got a clue
Sevenz
General Member
Since: Apr 24, 2006
Posts: 1134
Last: Dec 3, 2008
[view latest posts]
Level 8
Category: CoD 4 Level Design
Posted: Friday, Feb. 8, 2008 04:06 pm

Quote:
there are all files i need ...right?

the whole multiplayer createfx folder is missing

you'll have to place several rain effects into your map (old fashion). IW did it different, but we can't or simply don't know how. Iw used some kind of script, that automatically creates a createfx file. Until we can't do it same way, you have to load and play a lot of rain effects via script. Where you put the code doesn't matter. I suppose to make a new file, eg. maps\mp\mp_mapname_rain.fx and call it from your map gsc (maps\mp\mp_mapname_rain::main(); if it's function is named main())
pa1n
General Member
Since: Feb 5, 2008
Posts: 23
Last: Sep 18, 2008
[view latest posts]
Level 1
Category: CoD 4 Level Design
Posted: Saturday, Feb. 9, 2008 02:46 pm
Sevenz have you made some code that works

One that creates rain and has the sounds and lightning??
Sevenz
General Member
Since: Apr 24, 2006
Posts: 1134
Last: Dec 3, 2008
[view latest posts]
Level 8
Category: CoD 4 Level Design
Posted: Saturday, Feb. 9, 2008 04:36 pm
not yet, but perhaps i will give it a try.
pa1n
General Member
Since: Feb 5, 2008
Posts: 23
Last: Sep 18, 2008
[view latest posts]
Level 1
Category: CoD 4 Level Design
Posted: Sunday, Feb. 10, 2008 05:51 pm
So i sat down and worked on it for a while.

I converted this script from somewhee and corrected any errors

I now have rain BUT i have an error about FX ELEMENT exceeded


Code:
main() 
{
	//How high is your map?
	level.mapheight = 500;

	//What effect am I going to use for the rain?
	level._effect[ "rain" ] = loadfx( "weather/rain_heavy" );
	
	//I don't want to leave lonely rain() alone :)
	level thread rain(); 
} 

//Rain tells us who she is :P
rain()
{
	while(1)
	{
		players = getentarray("player", "classname");
		
		for(i=0; i


edited on Feb. 10, 2008 05:52 pm by pa1n
pa1n
General Member
Since: Feb 5, 2008
Posts: 23
Last: Sep 18, 2008
[view latest posts]
Level 1
Category: CoD 4 Level Design
Posted: Sunday, Feb. 10, 2008 08:44 pm
Well it seems after a while it begins to overload the map.

I need away o flimiting the rain so it does not exceed the limits.

I need some help on this one .........

Please someone who knows this script help!!!
Sevenz
General Member
Since: Apr 24, 2006
Posts: 1134
Last: Dec 3, 2008
[view latest posts]
Level 8
Category: CoD 4 Level Design
Posted: Sunday, Feb. 10, 2008 09:59 pm
not tested:


Code:
main()
{
	maps\mp\_load::main();

	level.rasta_cod2_rain = loadfx ("weather/rain_mp_farm");

	//maps\mp\_compass::setupMiniMap("compass_map_mp_farm");

	setExpFog(300, 1400, 0.5, 0.5, 0.5, 0);
	ambientPlay("ambient_farm");
	VisionSetNaked( "mp_farm" );

	//Soldier Settings
	game["allies"] = "sas";
	game["axis"] = "russian";
	game["attackers"] = "allies";
	game["defenders"] = "axis";
	game["allies_soldiertype"] = "woodland";
	game["axis_soldiertype"] = "woodland";

	thread rasta_cod2_rain();
}

rasta_cod2_rain()
{
	zufall = RandomInt(100);

	while(1)
	{
		players = getentarray("player", "classname");

		if(players.size > 0)
		{
			max_nodes = 20;
			max_nodes_per_player = max_nodes/players.size;

			for(ii=0;ii
keker
General Member
Since: Jan 19, 2008
Posts: 19
Last: Mar 18, 2008
[view latest posts]
Level 1
Category: CoD 4 Level Design
Posted: Tuesday, Feb. 12, 2008 01:05 pm
Hi All,

Sevenz - it tried Rastas method comes up with an error msg missing { or something .... tried that ages ago.

pa1n this is what i get when i put your script into my gsc file.

http://i256.photobucket.com/albums/hh165/kekerso/missingfx.jpg

Am i missing something maybe in Radient?

If either of you understand what is going on here please let me know a simple step through - in plain English what i need to do.

If u need a copy of the gsc just say so.
Restricted Access Restricted Access
Page
Previous Page Next Page
subscribe
MODSonline.com Forums : Call of Duty 4 : CoD 4 Level Design
All logos and trademarks and information in this site are property of MODSonline LLC © 2008.
The comments are property of their posters.
RSS news feeds for MODSonline can be found News.php.
Intergi
Partners
The Firing Box
modbase.be
XoXide
Frag Universe
Call of Duty Headquarters
Battle for Europe COD2
CODAddicts - Call of Duty News & Downloads
Ask About
Advertising
Friends
Canada Kicks Ass Clan
SOF2 Files and Downloads
Volcano
Ask About
Advertising
Link to Us
MODSonair
View in iTunes
Please help us to raise in the ranks of podcasting and subscribe to our itunes feed using the link above.
MODSonair Releases
MODSonair Episode 155
MODSonair Episode 154
MODSonair Episode 153
MODSonair Episode 152
MODSonair Episode 151
Next Show
The next MODSonair show will air LIVE on:
12/07/2008 12:00 EST

Time remaining:
Copyright © 2008 MODSonline
Tresware Content Management System Copyright © 2008 Tresware
Website Designed and Hosted   Tresware