Help on simple two player Pong!!
I am fairly new to java. But I know quit a bit already. I want my to write a program that is just pong and has two paddles. One player controls one and the second player controls the other. Can anyone help me with it here is my code: ( I have tryed a switch statement for handling the keyboard but it doesn't work can anyone help me?)
import java.awt.*;
public class Pong extends java.applet.Applet
int x = 245;
int y = 145;
int xVelocity = 3;
int yVelocity = 3;
int playerOneY = 105;
int playerOneY2 = 110;
int playerTwoY = 105;
int playerTwoY2 = 110;
Color ballColor = new Color(25, 120, 190);
Color panelColor = new Color(220, 35, 70);
public void paint(Graphics g)
while(true)
g.setColor(panelColor);
g.fillRect(0,playerOneY,5,playerOneY2);
g.fillRect(495,playerTwoY,500,playerTwoY2);
g.setColor(Color.lightGray);
g.fillRect(0,305,510,310);
g.fillRect(0,0,510,5);
g.setColor(Color.white);
g.fillOval(x,y,25,25);
x += xVelocity;
y += yVelocity;
g.setColor(ballColor);
g.fillOval(x,y,25,25);
// bounces off paddles
if((y < playerOneY) && (y > playerOneY2))
if(x<0)
xVelocity = +xVelocity;
if((y < playerTwoY) && (y > playerTwoY2))
if(x>500)
xVelocity = -xVelocity;
//bounce off top walls
if((y > 285) || (y < 25))
yVelocity = -yVelocity;
if((y < 0) || (y > 285))
yVelocity = +yVelocity;
g.setColor(ballColor);
g.fillOval(x,y,25,25);
for(int i=0; i<20000000; i++);
repaint();
}
Heres soem suggestions.... To to keyboard interaction, you need to import java.awt.event.*
then have your class implement KeyListener or use a KeyAdapter , then addKeyListener(this) in the constructor or else where, then implement each of the key event methods, but just use the keyPressed(KeyEvent e) method, then in that, get the key code, like this:
public void keyPressed(KeyEvent e)
int key = e.getKeyCode() //gets the code of the key pressed
switch(key)
case KeyEvent.VK_LEFT: blahblah(); break;
}
Similar Messages
-
HELP!Simple MIDI player based on Sequencer:how to set Volume?
Hi,i'm Roberto,i'm student and i'm realizing a simple midi player in java (using java1.5 and javax.sound.midi package).....the program has a gui and it can just play midi files,and the player is a class based on a Sequencer object:so the method play() initializes a Sequence object from a file and this is given as parameter to the sequencer,so it runs with Sequencer.start();......
my BIG problem is:"how can change the volume when playng if the player's class is created as above?","how can i realize a method setVolume(int volume)?"......please help me!!!!!Did the previous post fix the problem?
At what point should the synthesizer and sequencer be opened?
Can the volume be set at anytime during playback?
I have a similar problem and i tried both of these solutions and they did not work for me.
Heres my code:
/** The midi sequencer */
private Sequencer sequencer = null;
/** The synthesizer (for volume control) */
private Synthesizer synthesizer = null;
/** The volume (as a percentage) */
private double gain = 100.0d;
* Default constructor.
* @since 1.0
public MidiPlayer() {
try {
// get the system sequencer
this.sequencer = MidiSystem.getSequencer();
// get the system synthesizer
this.synthesizer = MidiSystem.getSynthesizer();
// open the sequencer
this.sequencer.open();
// open the synthesizer
this.synthesizer.open();
// link the sequencer to the synthesizer
this.sequencer.getTransmitter().setReceiver(this.synthesizer.getReceiver());
// set this class to list for meta events
// (end of track event in particular)
this.sequencer.addMetaEventListener(this);
} catch (MidiUnavailableException ex) {
// TODO error handling
ex.printStackTrace();
public void play(Sequence sequence, boolean loop) {
if (this.sequencer != null && sequence != null && this.sequencer.isOpen()) {
try {
// give the sequencer the sequence
this.sequencer.setSequence(sequence);
// start the sequencer
this.sequencer.start();
//set the loop flag
this.loop = loop;
} catch (InvalidMidiDataException e) {
e.printStackTrace();
// TODO error handling
public void setGain(double gain) {
this.gain = gain;
// change the percent value to a respective gain value
int value = (int) (127 * (double) (this.gain / 100.0));
// modify the volume of the sequence
MidiChannel[] channels = this.synthesizer.getChannels();
for(int i = 0; i < channels.length; i++) {
channels.controlChange(7, value);
MidiChannel[] channels = this.synthesizer.getChannels();
for (int i = 0; i < channels.length; i++) {
channels[i].controlChange(7, (int) (127 * (this.gain / 100.0))); -
Simple mp3 player not working :( action script error
Hi Everyone!
I'm wondering if anyone can help with this problem:
I am currently designing a website and creating a simple mp3 player with an on / off function but doesn't appear to be working. I am getting this error:
1095: Syntax error: A string literal must be terminated before the line break.
1083: Syntax error: end of program is unexpected.
1084: Syntax error: expecting rightparen before end of program.
1084: Syntax error: expecting rightparen before end of program.
1084: Syntax error: expecting rightparen before end of program.
1084: Syntax error: expecting rightparen before end of program.
I have uploaded a zip file containing the images and FLA file. I'm wondering if someone wouldn't mind taking a look for me and telling me how to fix this problem:
http://www.c-recordz.co.uk/download/mp3_player.zip
Thanks
DaviesHi Davies,
On line 19 don't break the line, Flash will do it for you... other aspect that I would recomend is to not put the '$' on the variables. In AS2 variables don't need to be declared as such (although it's a good policy), instead of the '$' put the 'var' word, as you already have in those variables.
Greetings
Leo -
Please Help Me Install Flash player
Yesterday I unintentionally uninstalled Flash player with a product named Perfect Uninstaller. During the process it states that the Item I uninstalled will be uninstalled now and forever. Every time I click "run" to install it starts for about one second and then stops completely. I'm beginning to think that they meant it and that there is some sort of blocking going on but that is just an assumption. I hope some can help. I am a novice obviously. I am using Windows XP.
Message was edited by: toad eater
Message was edited by: toad eaterYeah it was a goofy move for sure. Thanks for the direction I finally got the download..
Date: Thu, 16 Sep 2010 15:50:03 -0600
From: [email protected]
To: toad eater
Subject: Flash Player Please Help Me Install Flash player
Hi, I really don't know how one can "unitentionally uninstall" anything, LOL
You can go to this site and follow the instructions:
http://kb2.adobe.com/cps/191/tn_19166.html
Thanks,
eidnolb
> -
I need help with controlling two .swf's from third.
Hi, thanks for reading!
I need help with controlling two .swf's from third.
I have a problem where I need to use a corporate designed
.swf in a digital signage solution, but have been told by the legal
department that it can not be modified in any way, I also can't
have the source file yada yada. I pulled the .swfs from their
website and I decompiled them to see what I was up against.
The main swf that I need to control is HCIC.swf and the
problem is it starts w/ a preloader, which after loading stops on a
frame that requires user input (button press) on a play button,
before the movie will proceed and play through.
What I have done so far is to create a container swf,
HCIC_container.swf that will act as Target for the HCIC.swf, and
allow me to send actionscript to the file I'm not allowed to
modify.
I managed to get that done with the help of someone on
another forum. It was my hope that the following script would just
start HCIC.swf at a frame past the preloader and play button, and
just play through.
var container:MovieClip = createEmptyMovieClip("container",
getNextHighestDepth());
var mcLoader:MovieClipLoader = new MovieClipLoader();
mcLoader.addListener(this);
mcLoader.loadClip("MCIC.swf", container);
function onLoadInit(mc:MovieClip) {
mc.gotoAndPlay(14);
But unfortunately it didn't solve my problem. Because there
is a media-controller.swf, that is being loaded by HCIC.swf that
has the controls including the play button to start HCIC.swf.
Here's a link to a .zip file with all 3 .swf files, and all 3
.fla files.
http://www.axiscc.com/temp/HCIC.zip
What I need to do is automatically start the HCIC.swf file
bypassing the pre-loader and play button without editing it or the
media-controller.swf in anyway. So all the scripting needs to be
done in HCIC_container.swf.
I know this is confusing, and its difficult to explain, but
if you look at the files it should make sense.
ActionScripting is far from my strong point, so I'm
definitely over my head here.
Thanks for your help.Got my solution on another forum.
http://www.actionscript.org/forums/showthread.php3?t=146827 -
Hi there,
The following code is a simple media player applet. Now I try to change it to an application.
import java.applet.Applet;
import java.awt.*;
import java.awt.event.*;
import java.lang.String;
import java.net.URL;
import java.net.MalformedURLException;
import java.io.IOException;
import java.util.Properties;
import javax.media.*;
public class SimplePlayerApplet extends Applet implements ControllerListener {
// media Player
Player player = null;
// component in which video is playing
Component visualComponent = null;
// controls gain, position, start, stop
Component controlComponent = null;
// displays progress during download
Component progressBar = null;
boolean firstTime = true;
long CachingSize = 0L;
Panel panel = null;
int controlPanelHeight = 0;
int videoWidth = 0;
int videoHeight = 0;
* Read the applet file parameter and create the media
* player.
public void init() {
//$ System.out.println("Applet.init() is called");
setLayout(null);
setBackground(Color.white);
panel = new Panel();
panel.setLayout( null );
add(panel);
panel.setBounds(0, 0, 320, 240);
// input file name from html param
String mediaFile = null;
// URL for our media file
MediaLocator mrl = null;
URL url = null;
// Get the media filename info.
// The applet tag should contain the path to the
// source media file, relative to the html page.
if ((mediaFile = getParameter("FILE")) == null)
Fatal("Invalid media file parameter");
try {
url = new URL(getDocumentBase(), mediaFile);
mediaFile = url.toExternalForm();
} catch (MalformedURLException mue) {
try {
// Create a media locator from the file name
if ((mrl = new MediaLocator(mediaFile)) == null)
Fatal("Can't build URL for " + mediaFile);
// Create an instance of a player for this media
try {
player = Manager.createPlayer(mrl);
} catch (NoPlayerException e) {
System.out.println(e);
Fatal("Could not create player for " + mrl);
// Add ourselves as a listener for a player's events
player.addControllerListener(this);
} catch (MalformedURLException e) {
Fatal("Invalid media file URL!");
} catch (IOException e) {
Fatal("IO exception creating player for " + mrl);
* Start media file playback. This function is called the
* first time that the Applet runs and every
* time the user re-enters the page.
public void start() {
//$ System.out.println("Applet.start() is called");
// Call start() to prefetch and start the player.
if (player != null)
player.start();
* Stop media file playback and release resource before
* leaving the page.
public void stop() {
//$ System.out.println("Applet.stop() is called");
if (player != null) {
player.stop();
player.deallocate();
public void destroy() {
//$ System.out.println("Applet.destroy() is called");
player.close();
* This controllerUpdate function must be defined in order to
* implement a ControllerListener interface. This
* function will be called whenever there is a media event
public synchronized void controllerUpdate(ControllerEvent event) {
// If we're getting messages from a dead player,
// just leave
if (player == null)
return;
// When the player is Realized, get the visual
// and control components and add them to the Applet
if (event instanceof RealizeCompleteEvent) {
if (progressBar != null) {
panel.remove(progressBar);
progressBar = null;
int width = 320;
int height = 0;
if (controlComponent == null)
if (( controlComponent =
player.getControlPanelComponent()) != null) {
controlPanelHeight = controlComponent.getPreferredSize().height;
panel.add(controlComponent);
height += controlPanelHeight;
if (visualComponent == null)
if (( visualComponent =
player.getVisualComponent())!= null) {
panel.add(visualComponent);
Dimension videoSize = visualComponent.getPreferredSize();
videoWidth = videoSize.width;
videoHeight = videoSize.height;
width = videoWidth;
height += videoHeight;
visualComponent.setBounds(0, 0, videoWidth, videoHeight);
panel.setBounds(0, 0, width, height);
if (controlComponent != null) {
controlComponent.setBounds(0, videoHeight,
width, controlPanelHeight);
controlComponent.invalidate();
} else if (event instanceof CachingControlEvent) {
if (player.getState() > Controller.Realizing)
return;
// Put a progress bar up when downloading starts,
// take it down when downloading ends.
CachingControlEvent e = (CachingControlEvent) event;
CachingControl cc = e.getCachingControl();
// Add the bar if not already there ...
if (progressBar == null) {
if ((progressBar = cc.getControlComponent()) != null) {
panel.add(progressBar);
panel.setSize(progressBar.getPreferredSize());
validate();
} else if (event instanceof EndOfMediaEvent) {
// We've reached the end of the media; rewind and
// start over
player.setMediaTime(new Time(0));
player.start();
} else if (event instanceof ControllerErrorEvent) {
// Tell TypicalPlayerApplet.start() to call it a day
player = null;
Fatal(((ControllerErrorEvent)event).getMessage());
} else if (event instanceof ControllerClosedEvent) {
panel.removeAll();
void Fatal (String s) {
// Applications will make various choices about what
// to do here. We print a message
System.err.println("FATAL ERROR: " + s);
throw new Error(s); // Invoke the uncaught exception
// handler System.exit() is another
// choice.
The change I've made:
import java.applet.Applet;
import java.awt.*;
import java.awt.event.*;
import java.lang.String;
import java.net.URL;
import java.net.MalformedURLException;
import java.io.IOException;
import java.util.Properties;
import javax.media.*;
import javax.swing.*;
public class MoviePlayer extends JFrame implements ControllerListener {
// media Player
Player player = null;
// component in which video is playing
Component visualComponent = null;
// controls gain, position, start, stop
Component controlComponent = null;
// displays progress during download
Component progressBar = null;
boolean firstTime = true;
long CachingSize = 0L;
JPanel panel = null;
int controlPanelHeight = 0;
int videoWidth = 0;
int videoHeight = 0;
* Read the applet file parameter and create the media
* player.
public MoviePlayer() {
FlowLayout layout = new FlowLayout();
setTitle("Media Application");
setDefaultLookAndFeelDecorated(true);
Container mainWindow = getContentPane();
//$ System.out.println("Applet.init() is called");
setBackground(Color.white);
panel = new JPanel();
panel.setBounds(0, 0, 320, 240);
mainWindow.add(panel);
// input file name from html param
String mediaFile = null;
// URL for our media file
MediaLocator mrl = null;
URL url = null;
// Get the media filename info.
// The applet tag should contain the path to the
// source media file, relative to the html page.
mediaFile = "abc.avi";
try {
url = new URL(mediaFile);
mediaFile = url.toExternalForm();
} catch (MalformedURLException mue) {
try {
// Create a media locator from the file name
if ((mrl = new MediaLocator(mediaFile)) == null)
Fatal("Can't build URL for " + mediaFile);
// Create an instance of a player for this media
try {
player = Manager.createPlayer(mrl);
} catch (NoPlayerException e) {
System.out.println(e);
Fatal("Could not create player for " + mrl);
// Add ourselves as a listener for a player's events
player.addControllerListener(this);
} catch (MalformedURLException e) {
Fatal("Invalid media file URL!");
} catch (IOException e) {
Fatal("IO exception creating player for " + mrl);
* Start media file playback. This function is called the
* first time that the Applet runs and every
* time the user re-enters the page.
public void start() {
//$ System.out.println("Applet.start() is called");
// Call start() to prefetch and start the player.
if (player != null)
player.start();
* Stop media file playback and release resource before
* leaving the page.
public void stop() {
//$ System.out.println("Applet.stop() is called");
if (player != null) {
player.stop();
player.deallocate();
public void destroy() {
//$ System.out.println("Applet.destroy() is called");
player.close();
* This controllerUpdate function must be defined in order to
* implement a ControllerListener interface. This
* function will be called whenever there is a media event
public synchronized void controllerUpdate(ControllerEvent event) {
// If we're getting messages from a dead player,
// just leave
if (player == null)
return;
// When the player is Realized, get the visual
// and control components and add them to the Applet
if (event instanceof RealizeCompleteEvent) {
if (progressBar != null) {
panel.remove(progressBar);
progressBar = null;
int width = 320;
int height = 0;
if (controlComponent == null)
if (( controlComponent =
player.getControlPanelComponent()) != null) {
controlPanelHeight = controlComponent.getPreferredSize().height;
panel.add(controlComponent);
height += controlPanelHeight;
if (visualComponent == null)
if (( visualComponent =
player.getVisualComponent())!= null) {
panel.add(visualComponent);
Dimension videoSize = visualComponent.getPreferredSize();
videoWidth = videoSize.width;
videoHeight = videoSize.height;
width = videoWidth;
height += videoHeight;
visualComponent.setBounds(0, 0, videoWidth, videoHeight);
panel.setBounds(0, 0, width, height);
if (controlComponent != null) {
controlComponent.setBounds(0, videoHeight,
width, controlPanelHeight);
controlComponent.invalidate();
} else if (event instanceof CachingControlEvent) {
if (player.getState() > Controller.Realizing)
return;
// Put a progress bar up when downloading starts,
// take it down when downloading ends.
CachingControlEvent e = (CachingControlEvent) event;
CachingControl cc = e.getCachingControl();
// Add the bar if not already there ...
if (progressBar == null) {
if ((progressBar = cc.getControlComponent()) != null) {
panel.add(progressBar);
panel.setSize(progressBar.getPreferredSize());
validate();
} else if (event instanceof EndOfMediaEvent) {
// We've reached the end of the media; rewind and
// start over
player.setMediaTime(new Time(0));
player.start();
} else if (event instanceof ControllerErrorEvent) {
// Tell TypicalPlayerApplet.start() to call it a day
player = null;
Fatal(((ControllerErrorEvent)event).getMessage());
} else if (event instanceof ControllerClosedEvent) {
panel.removeAll();
void Fatal (String s) {
// Applications will make various choices about what
// to do here. We print a message
System.err.println("FATAL ERROR: " + s);
throw new Error(s); // Invoke the uncaught exception
// handler System.exit() is another
// choice.
public static void main(String[] args){
MoviePlayer view = new MoviePlayer();
view.setSize(600,250);
view.setVisible(true);
view.addWindowListener(new WindowAdapter () {
public void windowClosing (WindowEvent e) {
System.exit(0);
It does compile, but when I run it, it prints the following error message:
javax.media.NoPlayerException: Cannot find a Player for :abc.avi
FATAL ERROR: Could not create player for abc.avi
Exception in thread "main" java.lang.Error: Could not create player for abc.avi
at MoviePlayer.Fatal(MoviePlayer.java:257)
at MoviePlayer.<init>(MoviePlayer.java:123)
at MoviePlayer.main(MoviePlayer.java:263)
Press any key to continue...
Any advice?
Thank youHi,
That is due to the way MediaLocator excepts the filename to be formed. add the following line:
// Get the media filename info.
// The applet tag should contain the path to the
// source media file, relative to the html page.
mediaFile = "abc.avi";
//HERE'S THE LINE YOU NEED TO ADD
if ( mediaFile.indexOf( ":" ) < 3 ) mediaFile = "file:" + mediaFile;It formats the filename properly. Also make sure the abc.avi file is in the current directory. -
Help after installing Flash Player
I just installed Flash Player 10,1,102,64 and the adobe website recognizes this. It is also listed under programs when I go to unintall programs in my control panel. However, I can't find the program to use it. It doesn't show up under programs on my computer or when I search for it. Also, I can't open videos that use it. My operating system is Windows 7 and I'm using Internet Explore 32-bit. Please help!
Hi, Flash Player is a browser plugin and works thru your browser. It won't be listed in your Program files, but in the Control Panel as you have indicated.
Go to Tools, Manage addons and look under "Show"(very light text) in All addons. Shockwave Flash Object must be Installed, Enabled and version 10.1.102.64. This is the ActiveX Control for Flash Player.
Let me know on that.
Thanks,
eidnolb -
I need help with these two crashes...
PL_DHashTableOperate | GCGraphBuilder::NoteRoot(unsigned int, void*, nsCycleCollectionParticipant*)
DFusionWebPlugin@0x86b5
The first one happened a couple of days ago, a few times and not on any specific website.
The second one only happens on the site below.The second one indicates a problem with the DFusionWebPlugin that shows in your More system details list.
# D'Fusion Web Plug-In for Safari 64 bits (3.00.13774.0)
# D'Fusion Web Plug-In (3.00.13774.0)
What you posted are crash signatures.<br />
It might help if you post the actual crash IDs (bp-xxxxxxxx-xxxxxxxxx-xxxx-xxxxxxxxxxxx).<br />
You can find the IDs of the submitted crash reports on the <i>about:crashes</i> page.
See http://kb.mozillazine.org/Breakpad (Mozilla Crash Reporter) -
when ever Apple sends an update to my pc, it knackers up my itunes. The last time this happened I got someone to fix the problem for me, I am very techno phobic and do not understand the uninstalling and reinstalling. It comes up error MSVCR80. Please can someone help in simple English , as the technical jargon just goes over my head.
much ThanksThe last time this happened I got someone to fix the problem for me, I am very techno phobic and do not understand the uninstalling and reinstalling.
I think you should get a friend or family member who knows a bit more about computers to fix this for you.
They should try the following instructions.
Uninstall your existing copy of iTunes. Delete any copies of the iTunesSetup.exe (or iTunes64Setup.exe) installer files from your downloads areas for your web browsers and download a fresh copy of the iTunes installer from the Apple website:
http://www.apple.com/itunes/download/
(The current build of the 11.1.4.62 installer was changed a few days ago, which fixed the bulk of the reports of MSVCR80.dll/R6034/APSDaemon.exe/Error-7/AMDS-could-not-start trouble ... but the build number on the installer was not changed. So we're trying to make sure you do the reinstall using a "new good" 11.1.4.62 installer instead of an "old bad".)
Does the install with the new copy of the installer go through properly? If so, does that clear up the error message?
If you still have the same error messages cropping up, then try the procedures from the following user tip:
Troubleshooting issues with iTunes for Windows updates -
I need help with Adobe Flash Player, PLEASE!
I have been on multiple site trying to play games or watch videos (e.g. YouTube) and keep getting an error message saying I have to install Adobe Flash Player in order to play/view. I have done this multiple times and currently have Flash Player 11 ActiveX and Flash Player 11 Plugin. What more do I need to do because it still won't let me watch the video or play the games!
PLEASE HELP ME!
Additional info: I just wound up downloading Google Chrome (but don't like it) and don't have the same problem. So, it's only happening when I am trying to do all this on Internet Explorer 9.Flash Player Help | Installation problems | Flash Player | Windows
Mylenium -
please help i have two ipods but i can use any as i can download the newer version of Itunes as i have the older version of Bonjour on my laptop
I just cannot remove this!!!!!!!!!!!!i am no shure but go on Itunes store in shortcuts and try to find 'purchasse'
good luck -
I've just updated my iPad and can't open mime attachments can anyone help in simple English h please?
I've just updated my iPad and can't open mime attachments can anyone help in simple English h please?
-
Need help to pair two iPhones?
Need help to pair two iPhones 3GS. Both have Bluetooth turned on but only one shows the other phone. Please help?
What are you trying to accomplish?
Iphones support bluetooth for stereo speakers/headsets, hadsfree telephone devices/headsets, some peer-to-peer apps from the app store, some keyboards and internet tethering where provided by the carrier.
Other than this it will not connect to another phone/device/computer.
File transfer is not supported at all. -
I can't find the movie I downloaded on my iPad...please help! Downloaded two days ago.
If it's been successfully downloaded then it should be in the Videos app :
If you can't find it in there then have you got a film age rating set in Settings > General > Restrictions that is hiding it ? -
Looking for simple movie player
I am looking for a very simple player with the following characteristics:
* all mplayer keyboard shortcuts (I imagine some kind of mplayer wrapper application)
* buttons for play/pause + scrollbar/progressbar + mute + volume
* ONE dialog with: path to a movie, path to a subtitle, choose subtitle encoding, subtitle font (eventually)
THAT'S IT, nothing more.
Codeine is close to being a perfect simple movie player, but the subtitle thingy doesn't really work as I'd like, from my testing.try kmplayer or kplayer.
Maybe you are looking for
-
While i am Doing an XMl publisher report in english and Italian Languages i am facing an issue with the Dot translation. For eg: 4.5 is translated to 4,5 in Italian.This creates a problem for me when i am doing summary on this column.So how should i
-
I can't close safari (option is greyed out) and I can't shut down the computer because of it. How do I fix this?
-
Hi. I am using a corporate owned font (Type 1) for a client, and have never had a problem with it until Acrobat 9. When I save a large photoshop (CS5) file as PDF, bring it into Acrobat 9 to add printer marks and run optimization to reduce file size,
-
hello there i've made a small program that pings on a dns using cmd and my problem here that :i want to do some action if the result is replay and do some other action if the result is request,how to do that? here is my code: import java.awt.*; impor
-
HOWTO and script: create and burn an UDF image with 4+GB files
Most people think, creating UDF images with files bigger than 4GB or even 1GB is impossible, however it's not true! You just need udftools. Also you need to load loop and udf modules. There's a good howto by grigio, I also created an (admitably prett